+# make sure to drop from grml-small what's unnecessary:
+if ifclass GRML_SMALL ; then
+ $ROOTCMD apt-get -y --purge remove aptitude
+ for pkg in groff-base info locales man-db manpages nano; do
+ $ROOTCMD apt-get --purge remove --yes $pkg || true
+ done
+fi
+
+# drop unnecessary software:
+if ifclass GRML_SMALL || ifclass DEBORPHAN ; then
+ if [ -f /etc/grml/fai/grml/grml_cleanup_chroot.deborphan ] ; then
+ cp /etc/grml/fai/grml/grml_cleanup_chroot.deborphan $target/root/
+ $ROOTCMD /root/grml_cleanup_chroot.deborphan
+ rm $target/root/grml_cleanup_chroot.deborphan
+ fi
+fi
+