1ff34afff7518d0dd5996c04b05822507fb0cc46
[grml-live.git] / etc / grml / fai / config / scripts / GRML_SMALL / 98-clean-chroot
1 #!/bin/sh
2 # Filename:      /etc/grml/fai/config/scripts/GRML_SMALL/98-clean-chroot
3 # Purpose:       clean up chroot system
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 # Latest change: Mon Sep 17 17:36:11 CEST 2007 [mika]
8 ################################################################################
9
10 set -u
11 set -e
12
13 # supported environment variables of grml_cleanup_chroot.small:
14 #   NOCOLORS: if set it disables colors in (debugging) output
15 #   REMOVE_DOCS: rm -rf /usr/share/doc + /usr/share/info
16
17 cp /etc/grml/fai/grml/grml_cleanup_chroot.small $target/root/
18 $ROOTCMD sh -c "NOCOLORS=1 /root/grml_cleanup_chroot.small"
19 rm $target/root/grml_cleanup_chroot.small
20
21 ## END OF FILE #################################################################
22 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3