Integrate feedback from Thomas Lange (thanks for the review!)
[grml-live.git] / etc / grml / fai / config / scripts / GRML / 98-clean-chroot
index 6404795..4413e7e 100755 (executable)
@@ -2,6 +2,6 @@
 set -u
 set -e
 
-cp /etc/grml/fai/grml/grml_cleanup_chroot "$target/root/"
-chroot "$target" /root/grml_cleanup_chroot
-rm "$target/root/grml_cleanup_chroot"
+cp /etc/grml/fai/grml/grml_cleanup_chroot $target/root/
+$ROOTCMD /root/grml_cleanup_chroot
+rm $target/root/grml_cleanup_chroot