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>
This commit is contained in:
parent
8cbf66d930
commit
4a1a00e1d4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user