X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F98-clean-chroot;h=76429503b40e7b42949a77bbaabdace7aa1bdebd;hp=5e00eee223a25a102b7c96a023f7b2bded2002ac;hb=bc3fb695369f16a11cbbb6ab57bd7d6898fe6f52;hpb=0edfd588036d9663063186c6f185391000c0bfaf diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index 5e00eee..7642950 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -12,28 +12,30 @@ set -e # 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 + $ROOTCMD /root/grml_cleanup_chroot.latex_cleanup rm $target/root/grml_cleanup_chroot.latex_cleanup fi # 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 + $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 + $ROOTCMD /root/grml_cleanup_chroot.remove_docs rm $target/root/grml_cleanup_chroot.remove_docs fi # misc cleanup: -cp /etc/grml/fai/grml/grml_cleanup_chroot $target/root/ -$ROOTCMD /root/grml_cleanup_chroot -rm $target/root/grml_cleanup_chroot +if [ -f /etc/grml/fai/grml/grml_cleanup_chroot ] ; then + cp /etc/grml/fai/grml/grml_cleanup_chroot $target/root/ + $ROOTCMD /root/grml_cleanup_chroot + rm $target/root/grml_cleanup_chroot +fi # make sure GRML_SMALL uses the appropriate configuration: if ifclass GRML_SMALL ; then