Remove worstest hacks from GRML_SMALL/98-clean-chroot
[grml-live.git] / etc / grml / fai / config / scripts / GRML_SMALL / 98-clean-chroot
1 #!/bin/bash
2 # Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRML_SMALL/98-clean-chroot
3 # Purpose:       clean up Grml chroot on grml-small
4 # Authors:       (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 ################################################################################
8
9 set -e
10 set -u
11
12 echo "Removing /usr/share/ssh/blacklist.*"
13 rm -f $target/usr/share/ssh/blacklist.DSA-1024 $target/usr/share/ssh/blacklist.RSA-2048
14
15 for pkg in info locales; do
16   $ROOTCMD apt-get --purge remove --yes $pkg || true
17 done
18
19 echo "Cleaning documentation directories"
20 if [ -d $target/usr/share/doc/grml-docs ] ; then
21   mv $target/usr/share/doc/grml-docs $target/tmp/
22 fi
23
24 ## END OF FILE #################################################################
25 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2