summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-08-17 05:58:59 +0100
committerChris Lamb <chris@chris-lamb.co.uk>2008-08-17 07:06:44 +0100
commit4a1a00e1d420283559c30d95e6ef82dcfedd8bc2 (patch)
treeb6d0a1b6f6e3c4e8e365167d4a318de714d14233
parent8cbf66d930ac28063b364184e7efdad46dccef9c (diff)
downloadvyos-live-build-4a1a00e1d420283559c30d95e6ef82dcfedd8bc2.tar.gz
vyos-live-build-4a1a00e1d420283559c30d95e6ef82dcfedd8bc2.zip
Remove automatically installed packages when installing helpers.
This was causing a bug where "grub-common"--a dependency of grub--was remaining in the binary build chroot after the grub tool was removed. This then resulted in it not being included in the d-i debs in lh_binary_debian-installer. Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
-rwxr-xr-xfunctions/packages.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/functions/packages.sh b/functions/packages.sh
index 034f57125..b3c15e2be 100755
--- a/functions/packages.sh
+++ b/functions/packages.sh
@@ -51,6 +51,11 @@ Remove_package ()
case "${LH_APT}" in
apt|apt-get)
Chroot "apt-get remove --purge --yes ${PACKAGES}"
+
+ if [ "${LH_DISTRIBUTION}" != "etch" ]
+ then
+ Chroot "apt-get autoremove --purge --yes"
+ fi
;;
aptitude)