Split from grml-live to workaround licensing issues.
[grml-live-grml.git] / etc / grml / fai / config / scripts / DEBORPHAN / 98-clean-chroot
diff --git a/etc/grml/fai/config/scripts/DEBORPHAN/98-clean-chroot b/etc/grml/fai/config/scripts/DEBORPHAN/98-clean-chroot
deleted file mode 100755 (executable)
index f5c1a94..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-# Filename:      ${GRML_FAI_CONFIG}/config/scripts/DEBORPHAN/98-clean-chroot
-# Purpose:       drop as many packages from grml as possible
-# Authors:       (c) Michael Prokop <mika@grml.org>
-# Bug-Reports:   see http://grml.org/bugs/
-# License:       This file is licensed under the GPL v2.
-################################################################################
-
-set -u
-set -e
-
-if ! [ -x $target/usr/bin/deborphan ] ; then
-  echo "Warning: deborphan not installed"
-  exit 0
-fi
-
-# remove all packages not necessary anymore:
-$ROOTCMD apt-get -y --purge autoremove
-
-# remove packages until deborphan does not find anymore:
-while [ "$($ROOTCMD deborphan)" != "" ] ; do
-  $ROOTCMD apt-get -y --purge remove $($ROOTCMD deborphan)
-done
-
-## END OF FILE #################################################################
-# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2