|
|
@ -214,6 +214,10 @@ dl_kernel_image () {
|
|
|
|
kernel_repo="LTS414"
|
|
|
|
kernel_repo="LTS414"
|
|
|
|
kernel_selected="true"
|
|
|
|
kernel_selected="true"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "x${cmd_LTS419_KERNEL}" = "xenable" ] ; then
|
|
|
|
|
|
|
|
kernel_repo="LTS419"
|
|
|
|
|
|
|
|
kernel_selected="true"
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [ "x${cmd_STABLE_KERNEL}" = "xenable" ] && [ "x${kernel_selected}" = "x" ] ; then
|
|
|
|
if [ "x${cmd_STABLE_KERNEL}" = "xenable" ] && [ "x${kernel_selected}" = "x" ] ; then
|
|
|
|
kernel_repo="STABLE"
|
|
|
|
kernel_repo="STABLE"
|
|
|
|
kernel_selected="true"
|
|
|
|
kernel_selected="true"
|
|
|
@ -238,6 +242,7 @@ dl_kernel_image () {
|
|
|
|
echo "LTS44: --use-lts-4_4-kernel"
|
|
|
|
echo "LTS44: --use-lts-4_4-kernel"
|
|
|
|
echo "LTS49: --use-lts-4_9-kernel"
|
|
|
|
echo "LTS49: --use-lts-4_9-kernel"
|
|
|
|
echo "LTS414: --use-lts-4_14-kernel"
|
|
|
|
echo "LTS414: --use-lts-4_14-kernel"
|
|
|
|
|
|
|
|
echo "LTS419: --use-lts-4_19-kernel"
|
|
|
|
echo "STABLE: --use-stable-kernel"
|
|
|
|
echo "STABLE: --use-stable-kernel"
|
|
|
|
echo "TESTING: --use-testing-kernel"
|
|
|
|
echo "TESTING: --use-testing-kernel"
|
|
|
|
echo "EXPERIMENTAL: --use-experimental-kernel"
|
|
|
|
echo "EXPERIMENTAL: --use-experimental-kernel"
|
|
|
@ -570,7 +575,7 @@ initrd_cleanup () {
|
|
|
|
echo "NetInstall: Final size [$(du -ch ${TEMPDIR}/initrd-tree/ | grep total)]"
|
|
|
|
echo "NetInstall: Final size [$(du -ch ${TEMPDIR}/initrd-tree/ | grep total)]"
|
|
|
|
|
|
|
|
|
|
|
|
case "${DIST}" in
|
|
|
|
case "${DIST}" in
|
|
|
|
xenial|zesty|jessie|stretch)
|
|
|
|
xenial|bionic|jessie|stretch)
|
|
|
|
echo "uncompressing modules..."
|
|
|
|
echo "uncompressing modules..."
|
|
|
|
find "${TEMPDIR}"/initrd-tree/lib/modules/ -type f -name "*.xz" -exec unxz -d {} \;
|
|
|
|
find "${TEMPDIR}"/initrd-tree/lib/modules/ -type f -name "*.xz" -exec unxz -d {} \;
|
|
|
|
echo "NetInstall: Final size [$(du -ch ${TEMPDIR}/initrd-tree/ | grep total)]"
|
|
|
|
echo "NetInstall: Final size [$(du -ch ${TEMPDIR}/initrd-tree/ | grep total)]"
|
|
|
@ -1432,8 +1437,8 @@ check_distro () {
|
|
|
|
DIST="xenial"
|
|
|
|
DIST="xenial"
|
|
|
|
deb_distribution="ubuntu"
|
|
|
|
deb_distribution="ubuntu"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
zesty|zesty-armhf)
|
|
|
|
bionic|bionic-armhf)
|
|
|
|
DIST="zesty"
|
|
|
|
DIST="bionic"
|
|
|
|
deb_distribution="ubuntu"
|
|
|
|
deb_distribution="ubuntu"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
jessie|jessie-armhf)
|
|
|
|
jessie|jessie-armhf)
|
|
|
@ -1456,8 +1461,8 @@ check_distro () {
|
|
|
|
jessie (Debian 8)
|
|
|
|
jessie (Debian 8)
|
|
|
|
stretch (Debian 9) <default>
|
|
|
|
stretch (Debian 9) <default>
|
|
|
|
Ubuntu:
|
|
|
|
Ubuntu:
|
|
|
|
xenial (16.04)
|
|
|
|
xenial (16.04 LTS)
|
|
|
|
zesty (17.04)
|
|
|
|
bionic (18.04 LTS)
|
|
|
|
-----------------------------
|
|
|
|
-----------------------------
|
|
|
|
__EOF__
|
|
|
|
__EOF__
|
|
|
|
exit
|
|
|
|
exit
|
|
|
@ -1506,7 +1511,7 @@ usage () {
|
|
|
|
stretch (Debian 9) <default>
|
|
|
|
stretch (Debian 9) <default>
|
|
|
|
Ubuntu:
|
|
|
|
Ubuntu:
|
|
|
|
xenial (16.04 LTS)
|
|
|
|
xenial (16.04 LTS)
|
|
|
|
zesty (17.04)
|
|
|
|
bionic (18.04 LTS)
|
|
|
|
|
|
|
|
|
|
|
|
--firmware
|
|
|
|
--firmware
|
|
|
|
<include all firmwares from linux-firmware git repo>
|
|
|
|
<include all firmwares from linux-firmware git repo>
|
|
|
|