diff options
Diffstat (limited to 'helpers/lh_chroot_linux-image')
-rwxr-xr-x | helpers/lh_chroot_linux-image | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/helpers/lh_chroot_linux-image b/helpers/lh_chroot_linux-image index 59e5dd3..c409b77 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 |