summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_linux-image
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_linux-image')
-rwxr-xr-xhelpers/lh_chroot_linux-image11
1 files changed, 9 insertions, 2 deletions
diff --git a/helpers/lh_chroot_linux-image b/helpers/lh_chroot_linux-image
index 59e5dd31a..c409b7720 100755
--- a/helpers/lh_chroot_linux-image
+++ b/helpers/lh_chroot_linux-image
@@ -98,8 +98,15 @@ EOF
Chroot "find /root -name *.deb" > chroot/root/initfs
Chroot "xargs --arg-file=/root/initfs dpkg -i" || true
- # Cleaning dependencies
- Apt install -f
+ # Install dependencies
+ case "${LH_APT}" in
+ aptitude)
+ Apt install ${LH_INITRAMFS}
+ ;;
+ apt-get)
+ Apt install -f
+ ;;
+ esac
# Removing package files
rm -f chroot/root/${LH_INITRAMFS}*.deb