+# 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
+
+# make sure to drop from grml-small what's unnecessary:
+if ifclass GRML_SMALL ; then
+ $ROOTCMD apt-get -y --purge remove groff-base info \
+ locales man-db manpages nano
+fi
+