+# skip tasks which require only when using class NO_ONLINE:
+if ! ifclass NO_ONLINE ; then
+ 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
+fi
+
+# remove /usr/share/doc, /usr/share/info,... only in class REMOVE_DOCS:
+if ifclass REMOVE_DOCS ; then
+ cp /etc/grml/fai/grml/grml_cleanup_chroot.remove_docs $target/root/
+ $ROOTCMD /root/grml_cleanup_chroot.remove_docs
+ rm $target/root/grml_cleanup_chroot.remove_docs
+fi
+
+# misc cleanup: