Remove and recreate /root directory in 98-clean-chroot 0.0.12
authorMichael Prokop <devnull@localhost>
Sun, 9 Dec 2007 18:25:22 +0000 (19:25 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 9 Dec 2007 18:25:22 +0000 (19:25 +0100)
debian/changelog
etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot

index 13ff765..247cc0b 100644 (file)
@@ -14,7 +14,7 @@ grml-live (0.0.12) unstable; urgency=low
   * Generate md5sum of ISO if using class 'RELEASE'.
   * Do not install package 'grml' via GRMLBASE because we want
     to use grml-small in GRML_SMALL and GRML_MEDIUM.
-  * Do not exit if cleanup of /root directory in 98-clean-chroot fails.
+  * Remove and recreate /root directory in 98-clean-chroot.
   * Skip stage updatebase when using softupdate and handle upgrade
     on our own via hooks.
   * Execute removal of log files after sourcing config files.
index bd1ae73..18b5d61 100755 (executable)
@@ -47,7 +47,7 @@ if ifclass RELEASE ; then
    # Remove all FAI logs from chroot via grml-live later then:
    touch $target/etc/grml_fai_release
    # Remove all files inside /root/ of chroot:
-   rm -rf $target/root/.* $target/root/* || /bin/true
+   rm -rf $target/root && mkdir -m 0755 $target/root
 fi
 
 ## END OF FILE #################################################################