diff --git a/InstallNET.sh b/InstallNET.sh index 32b87a1..0be51a1 100644 --- a/InstallNET.sh +++ b/InstallNET.sh @@ -358,6 +358,7 @@ if [[ -n "$tmpDIST" ]]; then [[ "$isDigital" == '9' ]] && DIST='stretch'; [[ "$isDigital" == '10' ]] && DIST='buster'; [[ "$isDigital" == '11' ]] && DIST='bullseye'; + [[ "$isDigital" == '12' ]] && DIST='bookworm'; } } LinuxMirror=$(selectMirror "$Relese" "$DIST" "$VER" "$tmpMirror") @@ -374,6 +375,7 @@ if [[ -n "$tmpDIST" ]]; then [[ "$isDigital" == '16.04' ]] && DIST='xenial'; [[ "$isDigital" == '18.04' ]] && DIST='bionic'; [[ "$isDigital" == '20.04' ]] && DIST='focal'; + # [[ "$isDigital" == '22.04' ]] && DIST='jammy'; } } LinuxMirror=$(selectMirror "$Relese" "$DIST" "$VER" "$tmpMirror") @@ -559,10 +561,10 @@ if [[ "$loaderMode" == "0" ]]; then [[ "$setInterfaceName" == "1" ]] && Add_OPTION="net.ifnames=0 biosdevname=0" || Add_OPTION="" [[ "$setIPv6" == "1" ]] && Add_OPTION="$Add_OPTION ipv6.disable=1" - lowMem || Add_OPTION="$Add_OPTION lowmem=+0" + lowMem || Add_OPTION="$Add_OPTION lowmem=+2" if [[ "$linux_relese" == 'debian' ]] || [[ "$linux_relese" == 'ubuntu' ]]; then - BOOT_OPTION="auto=true $Add_OPTION hostname=$linux_relese domain= quiet" + BOOT_OPTION="auto=true $Add_OPTION hostname=$linux_relese domain=$linux_relese quiet" elif [[ "$linux_relese" == 'centos' ]]; then BOOT_OPTION="ks=file://ks.cfg $Add_OPTION ksdevice=$interfaceSelect" fi @@ -618,11 +620,18 @@ for COMP in `echo -en 'gzip\nlzma\nxz'` $UNCOMP < /tmp/$NewIMG | cpio --extract --verbose --make-directories --no-absolute-filenames >>/dev/null 2>&1 if [[ "$linux_relese" == 'debian' ]] || [[ "$linux_relese" == 'ubuntu' ]]; then +CurrentKernelVersion=`ls -1 ./lib/modules 2>/dev/null |head -n1` +[ -n "$CurrentKernelVersion" ] && SelectLowmem="di-utils-exit-installer,driver-injection-disk-detect,fdisk-udeb,netcfg-static,parted-udeb,partman-auto,partman-ext3,ata-modules-${CurrentKernelVersion}-di,efi-modules-${CurrentKernelVersion}-di,sata-modules-${CurrentKernelVersion}-di,scsi-modules-${CurrentKernelVersion}-di,scsi-nic-modules-${CurrentKernelVersion}-di" || SelectLowmem="" cat >/tmp/boot/preseed.cfg<