summaryrefslogtreecommitdiff
path: root/hooks/minimal
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:05:14 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:05:14 +0200
commit615360e7ad327a88578dcaea7d0d677c840c94fb (patch)
tree360ca9a49f3d82d589a4b49c98e5210dfcb3b74e /hooks/minimal
parentae5c245c5d0b910b9fde27f99668c46f64f9bcc2 (diff)
downloadvyos-live-build-615360e7ad327a88578dcaea7d0d677c840c94fb.tar.gz
vyos-live-build-615360e7ad327a88578dcaea7d0d677c840c94fb.zip
Adding live-helper 1.0~a18-1.
Diffstat (limited to 'hooks/minimal')
-rwxr-xr-xhooks/minimal12
1 files changed, 9 insertions, 3 deletions
diff --git a/hooks/minimal b/hooks/minimal
index c5bb412c0..37e1f7503 100755
--- a/hooks/minimal
+++ b/hooks/minimal
@@ -10,9 +10,15 @@
set -e
# Removing unused packages
-apt-get remove --purge --yes apt-utils aptitude
-apt-get remove --purge --yes man-db manpages info
-apt-get remove --purge --yes ssl wget
+for PACKAGE in apt-utils aptitude man-db manpages info ssl wget
+do
+ if ! apt-get remove --purge --yes "${PACKAGE}"
+ then
+ echo "WARNING: ${PACKAGE} isn't installed"
+ fi
+done
+
+apt-get autoremove || true
# Removing unused files
find . -name *~ | xargs rm -f