[Bug 1855354] Re: lb chroot_archives eats apt preferences files

Michael Hudson-Doyle mwhudsonlp at fastmail.fm
Tue Dec 17 01:00:44 UTC 2019


Verification complete on trusty:

1) I started two trusty ubuntu-base livefs builds:

$ start-livefs-build --livefs=~mwhudson/+livefs/ubuntu/trusty/docker-ubuntu-core-tests --pocket Updates --metadata project='"ubuntu-base"' --metadata image_format='"plain"'
https://launchpad.net/~mwhudson/+livefs/ubuntu/trusty/docker-ubuntu-core-tests/+build/195865
$ start-livefs-build --livefs=~mwhudson/+livefs/ubuntu/trusty/docker-ubuntu-core-tests --pocket Proposed --metadata project='"ubuntu-base"' --metadata image_format='"plain"' 
https://launchpad.net/~mwhudson/+livefs/ubuntu/trusty/docker-ubuntu-core-tests/+build/195866

2) When they'd built, I downloaded the artifacts:

$ wget -O ubuntu-base-trusty-updates.tar.gz https://launchpad.net/~mwhudson/+livefs/ubuntu/trusty/docker-ubuntu-core-tests/+build/195865/+files/livecd.ubuntu-base.rootfs.tar.gz
$ wget -O ubuntu-base-trusty-proposed.tar.gz https://launchpad.net/~mwhudson/+livefs/ubuntu/trusty/docker-ubuntu-core-tests/+build/195866/+files/livecd.ubuntu-base.rootfs.tar.gz

3) I tested them using this silly script:

mwhudson at anduril:~/tmp/trusty-test$ cat test.sh
#!/bin/bash -eux

cleanup () {
    for m in dev/pts dev proc sys; do
        umount chroot/$m
    done
    rm -rf chroot
}
trap cleanup EXIT

mkdir chroot
tar -C chroot -xf "$1"
for m in dev dev/pts proc sys; do
    mount --bind /$m chroot/$m
done
cp /etc/resolv.conf chroot/etc
chroot chroot apt update
chroot chroot apt install -y socat
$ 

The output is rather verbose so it's here:
https://paste.ubuntu.com/p/Mgf6qh2RGx/ but the upshot is that the
attempt to install socat failed with the -updates tarball and succeeded
with the -proposed tarball.


** Tags removed: verification-needed verification-needed-trusty
** Tags added: verification-done-trusty

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1855354

Title:
  lb chroot_archives eats apt preferences files

Status in livecd-rootfs package in Ubuntu:
  Fix Released
Status in livecd-rootfs source package in Trusty:
  Fix Released
Status in livecd-rootfs source package in Xenial:
  New
Status in livecd-rootfs source package in Bionic:
  New

Bug description:
  [impact]
  This breaks apt update in a trusty docker image that does not have ESM enabled.

  [test case]
  Build a livefs with image_format=plain, project=ubuntu-base. Unpack it, do the usual pre-chroot setup dance (copy resolv.conf, bind mount proc and dev) chroot into it and run apt update.

  [regression potential]
  The change could conceivably leave apt preference files we want deleted in an image. But this seems very unlikely.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1855354/+subscriptions



More information about the foundations-bugs mailing list