Installing initramfs generator from local-packages, if available.
This commit is contained in:
parent
0d0e8bb268
commit
5b957702d4
|
@ -82,7 +82,10 @@ EOF
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PACKAGES="${PACKAGES} ${LH_INITRAMFS}"
|
if ! ls config/chroot_local-packages/${LH_INITRAMFS}*.deb > /dev/null 2>&1
|
||||||
|
then
|
||||||
|
PACKAGES="${PACKAGES} ${LH_INITRAMFS}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Installing linux-image, modules and ${LH_INITRAMFS}
|
# Installing linux-image, modules and ${LH_INITRAMFS}
|
||||||
case "${LH_APT}" in
|
case "${LH_APT}" in
|
||||||
|
@ -95,6 +98,26 @@ EOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if ls config/chroot_local-packages/${LH_INITRAMFS}*.deb > /dev/null 2>&1
|
||||||
|
then
|
||||||
|
cp config/chroot_local-packages/${LH_INITRAMFS}*.deb chroot/root
|
||||||
|
|
||||||
|
Chroot "dpkg -i /root/${LH_INITRAMFS}*.deb" || true
|
||||||
|
|
||||||
|
# Cleaning dependencies
|
||||||
|
case "${LH_APT}" in
|
||||||
|
apt|apt-get)
|
||||||
|
Chroot "apt-get install -f --yes"
|
||||||
|
;;
|
||||||
|
|
||||||
|
aptitude)
|
||||||
|
Chroot "aptitude install -f --assume-yes"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
rm -f chroot/root/${LH_INITRAMFS}*.deb
|
||||||
|
fi
|
||||||
|
|
||||||
# Saving cache
|
# Saving cache
|
||||||
Save_cache cache/packages_linux-image
|
Save_cache cache/packages_linux-image
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue