From 0c812bb11b2f1814cf9a9a8633b481f59305c1b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 22 May 2017 12:41:36 +0200 Subject: Reverting "Purging packages that got removed/replaced during container creation.", not needed anymore. This reverts commit 8aa267f. Signed-off-by: Daniel Baumann --- share/scripts/debconf | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/share/scripts/debconf b/share/scripts/debconf index dee4dcd..c90e851 100755 --- a/share/scripts/debconf +++ b/share/scripts/debconf @@ -187,16 +187,6 @@ Cleanup_system () Chroot "${DIRECTORY}" "apt-get --yes --purge autoremove" Chroot "${DIRECTORY}" "apt-get clean" - CRUFT="$(Chroot "${DIRECTORY}" "dpkg --get-selections | awk '/deinstall$/ { print $1 }'")" - - if [ -n "${CRUFT}" ] - then - for PACKAGE in ${CRUFT} - do - Chroot "${DIRECTORY}" "apt-get purge ${PACKAGE}" - done - fi - # Cleanup rm -f "${DIRECTORY}/etc/dpkg/dpkg.cfg.d/container-tools" rm -f "${DIRECTORY}/usr/sbin/policy-rc.d" -- cgit v1.2.3