From d24ca0490b35ba12e0135c8098a9135b959dfc4d Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Fri, 13 Oct 2017 22:15:38 -0400 Subject: [PATCH] Pass --cache false to lb config; otherwise we copy around caches of .debs that are never used properly, and which prevent us from emptying /var/cache/apt in images. --- debian/changelog | 3 +++ live-build/auto/config | 1 + 2 files changed, 4 insertions(+) diff --git a/debian/changelog b/debian/changelog index f7062cd6..c7554cdc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,9 @@ livecd-rootfs (2.477) UNRELEASED; urgency=medium * Remove boot/grub leftovers from our root squashfs, left behind after grub purge. * Remove apt, debconf cruft files from /var/cache in all our livefses. + * Pass --cache false to lb config; otherwise we copy around caches of + .debs that are never used properly, and which prevent us from emptying + /var/cache/apt in images. * When building minimized cloud images, remove various packages that we don't want installed by default. Some are tools that aren't needed for non-interactive use; some are libraries whose reverse-dependencies diff --git a/live-build/auto/config b/live-build/auto/config index bf7435d7..52a03469 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -694,6 +694,7 @@ lb config noauto \ --initsystem none \ --bootloader "$BOOTLOADER" \ --initramfs-compression lzma \ + --cache false \ ${BOOTAPPEND_LIVE:+--bootappend-live "$BOOTAPPEND_LIVE"} \ $OPTS \ "$@"