- cp /etc/grml/fai/grml/grml_cleanup_chroot.no_online $target/root/
- $ROOTCMD /root/grml_cleanup_chroot.no_online
- rm $target/root/grml_cleanup_chroot.no_online
+ cp /etc/grml/fai/grml/grml_cleanup_chroot.online $target/root/
+ $ROOTCMD /root/grml_cleanup_chroot.online
+ rm $target/root/grml_cleanup_chroot.online
+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
+
+# make sure to drop from grml-small what's unnecessary:
+if ifclass GRML_SMALL ; then
+ $ROOTCMD dpkg --purge groff-base info locales man-db manpages nano