lb chroot_archives eats apt preferences files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| livecd-rootfs (Ubuntu) |
Undecided
|
Michael Hudson-Doyle | ||
| Trusty |
Undecided
|
Michael Hudson-Doyle | ||
| Xenial |
Undecided
|
Unassigned | ||
| Bionic |
Undecided
|
Unassigned |
Bug Description
[impact]
This breaks apt update in a trusty docker image that does not have ESM enabled.
[test case]
for trusty:
Build a livefs with image_format=plain, project=
for the newer releases:
We have no seeded package that create apt preferences in their postinst yet, so let's just check the autopkgtest results.
[regression potential]
The change could conceivably leave apt preference files we want deleted in an image. But this seems very unlikely.
Related branches
- Julian Andres Klode: Approve on 2019-12-19
-
Diff: 71 lines (+35/-0)4 files modifieddebian/changelog (+8/-0)
live-build/auto/build (+6/-0)
live-build/auto/config (+13/-0)
live-build/ubuntu-cpc/hooks.d/chroot/100-preserve-apt-prefs.chroot (+8/-0)
- Ubuntu Core Development Team: Pending requested 2019-12-09
-
Diff: 71 lines (+35/-0)4 files modifieddebian/changelog (+8/-0)
live-build/auto/build (+6/-0)
live-build/auto/config (+13/-0)
live-build/ubuntu-cpc/hooks.d/chroot/100-preserve-apt-prefs.chroot (+8/-0)
- Steve Langasek: Approve on 2019-12-13
-
Diff: 71 lines (+35/-0)4 files modifieddebian/changelog (+8/-0)
live-build/auto/build (+6/-0)
live-build/auto/config (+13/-0)
live-build/ubuntu-cpc/hooks.d/chroot/100-preserve-apt-prefs.chroot (+8/-0)
Changed in livecd-rootfs (Ubuntu Trusty): | |
status: | New → Fix Committed |
tags: | added: verification-needed verification-needed-trusty |
Changed in livecd-rootfs (Ubuntu): | |
assignee: | nobody → Michael Hudson-Doyle (mwhudson) |
Changed in livecd-rootfs (Ubuntu Trusty): | |
assignee: | nobody → Michael Hudson-Doyle (mwhudson) |
Launchpad Janitor (janitor) wrote : | #2 |
This bug was fixed in the package livecd-rootfs - 2.635
---------------
livecd-rootfs (2.635) focal; urgency=medium
* Preserve apt preferences created by any package we install (i.e.
ubuntu-
(LP: #1855354)
-- Michael Hudson-Doyle <email address hidden> Sat, 14 Dec 2019 21:00:45 +1300
Changed in livecd-rootfs (Ubuntu): | |
status: | New → Fix Released |
Michael Hudson-Doyle (mwhudson) wrote : | #3 |
Verification complete on trusty:
1) I started two trusty ubuntu-base livefs builds:
$ start-livefs-build --livefs=
https:/
$ start-livefs-build --livefs=
https:/
2) When they'd built, I downloaded the artifacts:
$ wget -O ubuntu-
$ wget -O ubuntu-
3) I tested them using this silly script:
mwhudson@
#!/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:/
tags: |
added: verification-done-trusty removed: verification-needed verification-needed-trusty |
Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package livecd-rootfs - 2.208.18
---------------
livecd-rootfs (2.208.18) trusty; urgency=medium
* Preserve ubuntu-
attempt to delete them. (LP: #1855354)
-- Michael Hudson-Doyle <email address hidden> Fri, 06 Dec 2019 14:03:11 +1300
Changed in livecd-rootfs (Ubuntu Trusty): | |
status: | Fix Committed → Fix Released |
Steve Langasek (vorlon) wrote : Update Released | #5 |
The verification of the Stable Release Update for livecd-rootfs has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
description: | updated |
Hello Michael, or anyone else affected,
Accepted livecd-rootfs into bionic-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Changed in livecd-rootfs (Ubuntu Bionic): | |
status: | New → Fix Committed |
tags: | added: verification-needed verification-needed-bionic |
Changed in livecd-rootfs (Ubuntu Xenial): | |
status: | New → Fix Committed |
tags: | added: verification-needed-xenial |
Łukasz Zemczak (sil2100) wrote : | #7 |
Hello Michael, or anyone else affected,
Accepted livecd-rootfs into xenial-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Michael Hudson-Doyle (mwhudson) wrote : | #8 |
The autopkgtests for the update in both xenial and bionic passed, which is all the verification we can sensibly do at this stage.
tags: |
added: verification-done-bionic verification-done-xenial removed: verification-needed verification-needed-bionic verification-needed-xenial |
tags: | added: id-5de5ca6eb07b3c125672fe4e |
Launchpad Janitor (janitor) wrote : | #9 |
This bug was fixed in the package livecd-rootfs - 2.525.36
---------------
livecd-rootfs (2.525.36) bionic; urgency=medium
* Preserve apt preferences created by any package we install (i.e.
ubuntu-
(LP: #1855354)
-- Michael Hudson-Doyle <email address hidden> Thu, 19 Dec 2019 22:43:33 +1300
Changed in livecd-rootfs (Ubuntu Bionic): | |
status: | Fix Committed → Fix Released |
Launchpad Janitor (janitor) wrote : | #10 |
This bug was fixed in the package livecd-rootfs - 2.408.57
---------------
livecd-rootfs (2.408.57) xenial; urgency=medium
* Preserve apt preferences created by any package we install (i.e.
ubuntu-
(LP: #1855354)
-- Michael Hudson-Doyle <email address hidden> Thu, 19 Dec 2019 22:42:12 +1300
Changed in livecd-rootfs (Ubuntu Xenial): | |
status: | Fix Committed → Fix Released |
Hello Michael, or anyone else affected,
Accepted livecd-rootfs into trusty-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ livecd- rootfs/ 2.208.18 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification- needed- trusty to verification- done-trusty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- trusty. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.