From 188fbbf84943eaf8e69ee6dac70d27c042bb55d7 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 5 Nov 2007 22:37:30 +0100 Subject: [PATCH] Remove all files inside /root/ when using class RELEASE --- debian/changelog | 6 ++++++ etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 798df04..76bb3f6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-live (0.0.9) unstable; urgency=low + + * Remove all files inside /root/ when using class RELEASE. + + -- Michael Prokop Mon, 05 Nov 2007 22:37:11 +0100 + grml-live (0.0.8) unstable; urgency=low * Copy /etc/resolv.conf to chroot in diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index 2284637..e8c634c 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Sun Nov 04 12:11:32 CET 2007 [mika] +# Latest change: Mon Nov 05 22:37:04 CET 2007 [mika] ################################################################################ set -e @@ -43,9 +43,11 @@ if ifclass GRML_SMALL ; then cp $target/etc/runlevel.conf.livecd.small $target/etc/runlevel.conf fi -# Remove all FAI logs from chroot via grml-live then: 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/* fi ## END OF FILE ################################################################# -- 2.1.4