From 08a5fc58bafb929dcb6977f0bf8a540f5ceb4ca7 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Fri, 13 Oct 2017 14:28:17 -0400 Subject: [PATCH] Remove apt, debconf cruft files from /var/cache in all our livefses. --- debian/changelog | 1 + live-build/auto/build | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index ef6a347d..c2b14c84 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ 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. -- Steve Langasek Fri, 13 Oct 2017 14:18:45 -0400 diff --git a/live-build/auto/build b/live-build/auto/build index 41c21337..b062ddfb 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -210,6 +210,10 @@ EOF lb chroot "$@" + # remove crufty files that shouldn't be left in an image + rm -f chroot/var/cache/debconf/*-old + Chroot chroot apt clean + if [ -f config/oem-config-preinstalled ]; then # This is cargo-culted almost verbatim (with some syntax changes for