X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FDEBORPHAN%2F98-clean-chroot;h=42ed9c24a028e350ccc72ac575bf927061dd5fa5;hp=8c08357b241a927b048454a610707873099f5cf4;hb=2633dd333a7cae68695eafce7b559d69e52633cd;hpb=3d3713c18f91a6268eccd87081806b9cb9f80752 diff --git a/etc/grml/fai/config/scripts/DEBORPHAN/98-clean-chroot b/etc/grml/fai/config/scripts/DEBORPHAN/98-clean-chroot index 8c08357..42ed9c2 100755 --- a/etc/grml/fai/config/scripts/DEBORPHAN/98-clean-chroot +++ b/etc/grml/fai/config/scripts/DEBORPHAN/98-clean-chroot @@ -15,10 +15,12 @@ if ! [ -x $target/usr/bin/deborphan ] ; then fi # remove all packages not necessary anymore: +echo "Executing apt-get -y --purge autoremove" $ROOTCMD apt-get -y --purge autoremove # remove packages until deborphan does not find anymore: while [ "$($ROOTCMD deborphan)" != "" ] ; do + echo "Executing deborphan" $ROOTCMD apt-get -y --purge remove $($ROOTCMD deborphan) done @@ -28,6 +30,7 @@ done PURGE_PACKAGES=$($ROOTCMD dpkg --list | awk '/^rc/ {print $2}') if [ -n "$PURGE_PACKAGES" ] ; then + echo "Getting rid of packages which have been removed but not yet purged: $PURGE_PACKAGES" $ROOTCMD dpkg --purge $PURGE_PACKAGES fi