-# supported environment variables for grml_cleanup_chroot:
-# NOCOLORS: if set it disables colors in (debugging) output
-# LATEX_CLEANUP: remove some big directories of texlive (/usr/share/doc/texlive-*)
-# NOONLINE: disable functions that require working network setup
-# FAST: skip some longer tasks
-# REMOVE_DOCS: rm -rf /usr/share/doc + /usr/share/info
+# 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