From 2fc3993d48128db5c0ed3b086007889b846de13b Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 6 Jun 2018 06:44:20 +1200 Subject: [PATCH] Remove apt lists that are currently removed downstream anyway. (LP: #1699913) --- debian/changelog | 2 ++ live-build/auto/build | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index af0962de..c1ecaabd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ livecd-rootfs (2.529~ppa2~manpages1) cosmic; urgency=medium * Improvements to the ubuntu-base (i.e. Docker) build: - Customize the unminimize script to not install so many packages. - Divert /usr/bin/man to a script that points to the unminimize script. + - Remove apt lists that are currently removed downstream anyway. + (LP: #1699913) -- Michael Hudson-Doyle Tue, 05 Jun 2018 14:19:17 +1200 diff --git a/live-build/auto/build b/live-build/auto/build index 0217df43..eb18d5fe 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -261,6 +261,11 @@ EOF # remove crufty files that shouldn't be left in an image rm -f chroot/var/cache/debconf/*-old chroot/var/lib/dpkg/*-old Chroot chroot apt clean + if [ "${PROJECT}:${SUBPROJECT:-}" = "ubuntu-base:minimized" ]; then + # Save even more size by removing apt lists (that are currently removed + # downstream anyway) + rm -f chroot/var/lib/apt/lists/* + fi if [ -f config/oem-config-preinstalled ]; then