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 f09ffc57a3
commit 6e9e7754b6
2 changed files with 10 additions and 1 deletions

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
livecd-rootfs (2.408.69) xenial; 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:26:20 +0100
livecd-rootfs (2.408.68) xenial; urgency=medium
[ Gauthier Jolly ]

View File

@ -106,7 +106,7 @@ setup_mountpoint() {
mount proc-live -t proc "$mountpoint/proc"
mount sysfs-live -t sysfs "$mountpoint/sys"
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"
setup_resolvconf "${mountpoint}"
chroot "$mountpoint" apt-get update