Initial configuration for FAI (work in progress)
[grml-live-grml.git] / etc / grml / fai / config / scripts / GRML / 98-clean-chroot
diff --git a/etc/grml/fai/config/scripts/GRML/98-clean-chroot b/etc/grml/fai/config/scripts/GRML/98-clean-chroot
new file mode 100755 (executable)
index 0000000..17222f6
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -u
+set -e
+
+cp /etc/fai/grml/grml_cleanup_chroot "$target/root/"
+chroot "$target" /root/grml_cleanup_chroot
+rm "$target/root/grml_cleanup_chroot"