projects
/
grml-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Skip stage updatebase when using softupdate
[grml-live.git]
/
etc
/
grml
/
fai
/
config
/
scripts
/
GRMLBASE
/
98-clean-chroot
diff --git
a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
index
7642950
..
bd1ae73
100755
(executable)
--- 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 <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change:
Wed Sep 19 13:51:05 CES
T 2007 [mika]
+# Latest change:
Sun Dec 09 18:46:19 CE
T 2007 [mika]
################################################################################
set -e
################################################################################
set -e
@@
-18,9
+18,9
@@
fi
# skip tasks which require only when using class NO_ONLINE:
if ! ifclass NO_ONLINE ; then
# skip tasks which require only when using class NO_ONLINE:
if ! ifclass NO_ONLINE ; then
- cp /etc/grml/fai/grml/grml_cleanup_chroot.
no_
online $target/root/
- $ROOTCMD /root/grml_cleanup_chroot.
no_
online
- rm $target/root/grml_cleanup_chroot.
no_
online
+ cp /etc/grml/fai/grml/grml_cleanup_chroot.online $target/root/
+ $ROOTCMD /root/grml_cleanup_chroot.online
+ rm $target/root/grml_cleanup_chroot.online
fi
# remove /usr/share/doc, /usr/share/info,... only in class REMOVE_DOCS:
fi
# remove /usr/share/doc, /usr/share/info,... only in class REMOVE_DOCS:
@@
-43,5
+43,12
@@
if ifclass GRML_SMALL ; then
cp $target/etc/runlevel.conf.livecd.small $target/etc/runlevel.conf
fi
cp $target/etc/runlevel.conf.livecd.small $target/etc/runlevel.conf
fi
+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
+fi
+
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3