Implement -D option to set configuration directory; fai.conf: don't set variables...
[grml-live.git] / etc / grml / fai / config / scripts / RELEASE / 98-clean-chroot
1 #!/bin/bash
2 # Filename:      ${GRML_FAI_CONFIG}/config/scripts/RELEASE/98-clean-chroot
3 # Purpose:       clean up $HOMEs for release
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2 or any later version.
7 ################################################################################
8
9 set -u
10 set -e
11
12 # Remove all FAI logs from chroot via grml-live later then
13 echo "Setting up /etc/grml_fai_release for grml-live"
14 touch $target/etc/grml_fai_release
15
16 echo "Removing all files inside /root"
17 rm -rf $target/root
18 mkdir -m 0755 $target/root
19
20 echo "Removing all files inside /home/grml"
21 rm -rf $target/home/grml
22 mkdir -m 0755 $target/home/grml
23
24 ## END OF FILE #################################################################
25 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2