X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRML_SMALL%2F98-clean-chroot;h=e5e0b2d297778119bce5a02333205ad4b4f005b2;hb=6225bfa01f4dfc21710f47372c05e8ed2031480e;hp=1ff34afff7518d0dd5996c04b05822507fb0cc46;hpb=7280b17f3796971162b0da54e0a5d5d43878f394;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRML_SMALL/98-clean-chroot b/etc/grml/fai/config/scripts/GRML_SMALL/98-clean-chroot index 1ff34af..e5e0b2d 100755 --- a/etc/grml/fai/config/scripts/GRML_SMALL/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRML_SMALL/98-clean-chroot @@ -1,22 +1,25 @@ -#!/bin/sh -# Filename: /etc/grml/fai/config/scripts/GRML_SMALL/98-clean-chroot -# Purpose: clean up chroot system -# Authors: grml-team (grml.org), (c) Michael Prokop +#!/bin/bash +# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRML_SMALL/98-clean-chroot +# Purpose: clean up Grml chroot on grml-small +# Authors: (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: Mon Sep 17 17:36:11 CEST 2007 [mika] +# License: This file is licensed under the GPL v2. ################################################################################ -set -u set -e +set -u + +echo "Removing /usr/share/ssh/blacklist.*" +rm -f $target/usr/share/ssh/blacklist.DSA-1024 $target/usr/share/ssh/blacklist.RSA-2048 -# supported environment variables of grml_cleanup_chroot.small: -# NOCOLORS: if set it disables colors in (debugging) output -# REMOVE_DOCS: rm -rf /usr/share/doc + /usr/share/info +for pkg in info locales; do + $ROOTCMD apt-get --purge remove --yes $pkg || true +done -cp /etc/grml/fai/grml/grml_cleanup_chroot.small $target/root/ -$ROOTCMD sh -c "NOCOLORS=1 /root/grml_cleanup_chroot.small" -rm $target/root/grml_cleanup_chroot.small +echo "Cleaning documentation directories" +if [ -d $target/usr/share/doc/grml-docs ] ; then + mv $target/usr/share/doc/grml-docs $target/tmp/ +fi ## END OF FILE ################################################################# -# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3 +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2