-# TODO: use extra files and class names instead of environment variabes
-
-# 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
+# remove some big directories when using class LATEX_CLEANUP:
+if ifclass LATEX_CLEANUP ; then
+ cp /etc/grml/fai/grml/grml_cleanup_chroot.latex_cleanup $target/root/
+ $ROOTCMD /root/grml_cleanup_chroot.latex_cleanup
+ rm $target/root/grml_cleanup_chroot.latex_cleanup
+fi