X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRML_SMALL%2F98-clean-chroot;h=6e197e6ffd390827a9636a2a53d805946274f91d;hb=2633dd333a7cae68695eafce7b559d69e52633cd;hp=9161743b5abf5711b842e2445b6dede661873e73;hpb=64ee1640d6806ce897546f710303f1d61e6d6b24;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 9161743..6e197e6 100755 --- a/etc/grml/fai/config/scripts/GRML_SMALL/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRML_SMALL/98-clean-chroot @@ -1,25 +1,21 @@ -#!/bin/sh -# Filename: /etc/grml/fai/config/scripts/GRML/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:03:12 CEST 2007 [mika] +# License: This file is licensed under the GPL v2. ################################################################################ -set -u set -e +set -u -# supported environment variables for grml_cleanup_chroot: -# NOCOLORS: if set it disables colors in (debugging) output -# LATEX_CLEANUP: remove some big directories of texlive (/usr/share/doc/texlive-*) -# NOONLINE: disable functions that require working network setup -# FAST: skip some longer tasks -# REMOVE_DOCS: rm -rf /usr/share/doc + /usr/share/info +echo "Removing /usr/share/ssh/blacklist.*" +rm -f $target/usr/share/ssh/blacklist.DSA-1024 $target/usr/share/ssh/blacklist.RSA-2048 -cp /etc/grml/fai/grml/grml_cleanup_chroot $target/root/ -$ROOTCMD sh -c "NOCOLORS=1 /root/grml_cleanup_chroot" -rm $target/root/grml_cleanup_chroot +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