Permalink
Browse files

Remove and recreate /root directory in 98-clean-chroot

  • Loading branch information...
1 parent 67304be commit 00982709e1675875e39657464380cf4ad7e60411 Michael Prokop committed Dec 9, 2007
Showing with 2 additions and 2 deletions.
  1. +1 −1 debian/changelog
  2. +1 −1 etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
View
2 debian/changelog
@@ -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.
View
2 etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
@@ -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 #################################################################

0 comments on commit 0098270

Please sign in to comment.