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.

ubuntu/mantic
Steve Langasek 1 year ago
parent 0542e9d218
commit 1deccc2edd

8
debian/changelog vendored

@ -1,3 +1,11 @@
livecd-rootfs (23.10.38) UNRELEASED; urgency=medium
* 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.
-- Steve Langasek <steve.langasek@ubuntu.com> Sat, 16 Sep 2023 17:25:22 -0700
livecd-rootfs (23.10.37) mantic; urgency=medium livecd-rootfs (23.10.37) mantic; urgency=medium
* fix: ensure minimize-manual script uses passed in argument for all commands (LP: #2036198) * fix: ensure minimize-manual script uses passed in argument for all commands (LP: #2036198)

@ -138,7 +138,7 @@ setup_mountpoint() {
# cgroup2 mount for LP: 1944004 # cgroup2 mount for LP: 1944004
mount -t cgroup2 none "$mountpoint/sys/fs/cgroup" mount -t cgroup2 none "$mountpoint/sys/fs/cgroup"
mount -t tmpfs none "$mountpoint/tmp" 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" mount -t tmpfs none "$mountpoint/var/cache/apt"
mv "$mountpoint/etc/resolv.conf" resolv.conf.tmp mv "$mountpoint/etc/resolv.conf" resolv.conf.tmp
cp /etc/resolv.conf "$mountpoint/etc/resolv.conf" cp /etc/resolv.conf "$mountpoint/etc/resolv.conf"

Loading…
Cancel
Save