Purge removed packages via /etc/grml/fai/grml/grml_cleanup_chroot
authorMichael Prokop <devnull@localhost>
Sun, 4 Nov 2007 11:13:18 +0000 (12:13 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 4 Nov 2007 11:13:18 +0000 (12:13 +0100)
debian/changelog
etc/grml/fai/grml/grml_cleanup_chroot

index 2523709..2483632 100644 (file)
@@ -14,6 +14,7 @@ grml-live (0.0.8) unstable; urgency=low
   * Upgrade via aptitude upgrade in update process.
   * Rename /etc/grml/fai/grml/grml_cleanup_chroot.no_online into
     /etc/grml/fai/grml/grml_cleanup_chroot.online
+  * Purge removed packages via /etc/grml/fai/grml/grml_cleanup_chroot
 
  -- Michael Prokop <mika@grml.org>  Sun, 04 Nov 2007 01:43:06 +0100
 
index b75f55a..12bd0ae 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Wed Sep 19 13:38:45 CEST 2007 [mika]
+# Latest change: Sun Nov 04 12:12:57 CET 2007 [mika]
 ################################################################################
 
 # misc stuff
@@ -52,6 +52,10 @@ einfo "Setting up /etc/inittab"
 cp /etc/inittab.grml  /etc/inittab
 eend $?
 
+einfo "Purging removed packages"
+dpkg --purge $(dpkg --list | awk '/^rc/ { print $2}')
+eend $?
+
 if [ -x /usr/bin/make -a -r /usr/src/Makefile ] ; then
    einfo "Cleaning up /usr/src/linux-headers-$KERNEL"
    ( cd /usr/src