From f91a9f16ee19df5471a33ba4c07ca59f8e125a2c Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 18 Oct 2017 22:20:44 -0700 Subject: [PATCH] Also remove old dpkg files from the live images --- debian/changelog | 3 ++- live-build/auto/build | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index c7554cdc..3aa46496 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,7 +3,8 @@ livecd-rootfs (2.477) UNRELEASED; urgency=medium * Purge initramfs-tools from minimized images. * 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. + * Remove apt, debconf, dpkg cruft files from /var/cache and /var/lib 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. diff --git a/live-build/auto/build b/live-build/auto/build index 1a7c3b8a..34c33254 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -226,7 +226,7 @@ EOF fi # remove crufty files that shouldn't be left in an image - rm -f chroot/var/cache/debconf/*-old + rm -f chroot/var/cache/debconf/*-old chroot/var/lib/dpkg/*-old Chroot chroot apt clean if [ -f config/oem-config-preinstalled ]; then