mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
Added Debian 12
This commit is contained in:
parent
b77916e30a
commit
2d9b17634a
@ -358,6 +358,7 @@ if [[ -n "$tmpDIST" ]]; then
|
|||||||
[[ "$isDigital" == '9' ]] && DIST='stretch';
|
[[ "$isDigital" == '9' ]] && DIST='stretch';
|
||||||
[[ "$isDigital" == '10' ]] && DIST='buster';
|
[[ "$isDigital" == '10' ]] && DIST='buster';
|
||||||
[[ "$isDigital" == '11' ]] && DIST='bullseye';
|
[[ "$isDigital" == '11' ]] && DIST='bullseye';
|
||||||
|
[[ "$isDigital" == '12' ]] && DIST='bookworm';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LinuxMirror=$(selectMirror "$Relese" "$DIST" "$VER" "$tmpMirror")
|
LinuxMirror=$(selectMirror "$Relese" "$DIST" "$VER" "$tmpMirror")
|
||||||
@ -374,6 +375,7 @@ if [[ -n "$tmpDIST" ]]; then
|
|||||||
[[ "$isDigital" == '16.04' ]] && DIST='xenial';
|
[[ "$isDigital" == '16.04' ]] && DIST='xenial';
|
||||||
[[ "$isDigital" == '18.04' ]] && DIST='bionic';
|
[[ "$isDigital" == '18.04' ]] && DIST='bionic';
|
||||||
[[ "$isDigital" == '20.04' ]] && DIST='focal';
|
[[ "$isDigital" == '20.04' ]] && DIST='focal';
|
||||||
|
# [[ "$isDigital" == '22.04' ]] && DIST='jammy';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LinuxMirror=$(selectMirror "$Relese" "$DIST" "$VER" "$tmpMirror")
|
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=""
|
[[ "$setInterfaceName" == "1" ]] && Add_OPTION="net.ifnames=0 biosdevname=0" || Add_OPTION=""
|
||||||
[[ "$setIPv6" == "1" ]] && Add_OPTION="$Add_OPTION ipv6.disable=1"
|
[[ "$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
|
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
|
elif [[ "$linux_relese" == 'centos' ]]; then
|
||||||
BOOT_OPTION="ks=file://ks.cfg $Add_OPTION ksdevice=$interfaceSelect"
|
BOOT_OPTION="ks=file://ks.cfg $Add_OPTION ksdevice=$interfaceSelect"
|
||||||
fi
|
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
|
$UNCOMP < /tmp/$NewIMG | cpio --extract --verbose --make-directories --no-absolute-filenames >>/dev/null 2>&1
|
||||||
|
|
||||||
if [[ "$linux_relese" == 'debian' ]] || [[ "$linux_relese" == 'ubuntu' ]]; then
|
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<<EOF
|
cat >/tmp/boot/preseed.cfg<<EOF
|
||||||
d-i debian-installer/locale string en_US
|
d-i debian-installer/locale string en_US.UTF-8
|
||||||
|
d-i debian-installer/country string US
|
||||||
|
d-i debian-installer/language string en
|
||||||
|
|
||||||
d-i console-setup/layoutcode string us
|
d-i console-setup/layoutcode string us
|
||||||
|
|
||||||
d-i keyboard-configuration/xkb-keymap string us
|
d-i keyboard-configuration/xkb-keymap string us
|
||||||
|
d-i lowmem/low note
|
||||||
|
d-i anna/choose_modules_lowmem multiselect $SelectLowmem
|
||||||
|
|
||||||
d-i netcfg/choose_interface select $interfaceSelect
|
d-i netcfg/choose_interface select $interfaceSelect
|
||||||
|
|
||||||
@ -683,6 +692,7 @@ tasksel tasksel/first multiselect minimal
|
|||||||
d-i pkgsel/update-policy select none
|
d-i pkgsel/update-policy select none
|
||||||
d-i pkgsel/include string openssh-server
|
d-i pkgsel/include string openssh-server
|
||||||
d-i pkgsel/upgrade select none
|
d-i pkgsel/upgrade select none
|
||||||
|
d-i apt-setup/services-select multiselect
|
||||||
|
|
||||||
popularity-contest popularity-contest/participate boolean false
|
popularity-contest popularity-contest/participate boolean false
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user