projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3d3713c
)
DEBORPHAN/98-clean-chroot: be more verbose about executed steps
author
Michael Prokop
<mika@grml.org>
Wed, 5 Jun 2013 18:40:44 +0000
(20:40 +0200)
committer
Michael Prokop
<mika@grml.org>
Wed, 5 Jun 2013 18:40:44 +0000
(20:40 +0200)
etc/grml/fai/config/scripts/DEBORPHAN/98-clean-chroot
patch
|
blob
|
history
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
(executable)
--- 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:
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
$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
$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
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
$ROOTCMD dpkg --purge $PURGE_PACKAGES
fi