The chroot tmpfs mount should only be /var/lib/apt/lists, not /var/lib/apt; the latter breaks changes to /var/lib/apt/extended_states. LP: #2036195.

(cherry picked from commit 1deccc2edd7f139b84a6cb3d0a4dfe5ebaff50c7)

# Conflicts:
#	debian/changelog
This commit is contained in:
Steve Langasek 2023-09-16 17:27:45 -07:00 committed by Philip Roche
parent 9a2056d7cb
commit 908042dbc9
2 changed files with 10 additions and 1 deletions

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
livecd-rootfs (2.664.51) focal; urgency=medium
[Steve Langasek]
* The chroot tmpfs mount should only be /var/lib/apt/lists, not
/var/lib/apt; the latter breaks changes to /var/lib/apt/extended_states.
LP: #2036195.
-- Phil Roche <phil.roche@canonical.com> Thu, 19 Oct 2023 18:17:20 +0100
livecd-rootfs (2.664.50) focal; urgency=medium
* Do not modify /etc/ssh/sshd_config for ubuntu-cpc

View File

@ -109,7 +109,7 @@ setup_mountpoint() {
mount -o bind /usr/share/livecd-rootfs/live-build/apparmor/generic "$mountpoint/sys/kernel/security/apparmor/features/"
mount -o bind /usr/share/livecd-rootfs/live-build/seccomp/generic.actions_avail "$mountpoint/proc/sys/kernel/seccomp/actions_avail"
mount -t tmpfs none "$mountpoint/tmp"
mount -t tmpfs none "$mountpoint/var/lib/apt"
mount -t tmpfs none "$mountpoint/var/lib/apt/lists"
mount -t tmpfs none "$mountpoint/var/cache/apt"
mv "$mountpoint/etc/resolv.conf" resolv.conf.tmp
cp /etc/resolv.conf "$mountpoint/etc/resolv.conf"