Add kernel and firmware selection
This commit is contained in:
parent
a4b8a596d2
commit
5bbb3ab3d2
3 changed files with 34 additions and 4 deletions
36
archfi
36
archfi
|
@ -726,7 +726,8 @@ installmenu(){
|
||||||
fi
|
fi
|
||||||
options=()
|
options=()
|
||||||
options+=("${txteditmirrorlist}" "(${txtoptional})")
|
options+=("${txteditmirrorlist}" "(${txtoptional})")
|
||||||
options+=("${txtinstallarchlinux}" "pacstrap base linux")
|
options+=("${txtinstallarchlinux}" "pacstrap base kernel")
|
||||||
|
options+=("${txtinstallfirmware}" "(${txtoptional}) pacstrap linux-firmware")
|
||||||
options+=("${txtconfigarchlinux}" "")
|
options+=("${txtconfigarchlinux}" "")
|
||||||
sel=$(whiptail --backtitle "${apptitle}" --title "${txtinstallmenu}" --menu "" --cancel-button "${txtunmount}" --default-item "${nextitem}" 0 0 0 \
|
sel=$(whiptail --backtitle "${apptitle}" --title "${txtinstallmenu}" --menu "" --cancel-button "${txtunmount}" --default-item "${nextitem}" 0 0 0 \
|
||||||
"${options[@]}" \
|
"${options[@]}" \
|
||||||
|
@ -738,7 +739,12 @@ installmenu(){
|
||||||
nextitem="${txtinstallarchlinux}"
|
nextitem="${txtinstallarchlinux}"
|
||||||
;;
|
;;
|
||||||
"${txtinstallarchlinux}")
|
"${txtinstallarchlinux}")
|
||||||
installbase
|
if(installbase) then
|
||||||
|
nextitem="${txtinstallfirmware}"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"${txtinstallfirmware}")
|
||||||
|
installfirmware
|
||||||
nextitem="${txtconfigarchlinux}"
|
nextitem="${txtconfigarchlinux}"
|
||||||
;;
|
;;
|
||||||
"${txtconfigarchlinux}")
|
"${txtconfigarchlinux}")
|
||||||
|
@ -754,8 +760,29 @@ installmenu(){
|
||||||
|
|
||||||
installbase(){
|
installbase(){
|
||||||
clear
|
clear
|
||||||
echo "pacstrap /mnt base linux"
|
pkgs="base"
|
||||||
pacstrap /mnt base linux
|
options=()
|
||||||
|
options+=("linux" "")
|
||||||
|
options+=("linux-lts" "")
|
||||||
|
options+=("linux-zen" "")
|
||||||
|
options+=("linux-hardened" "")
|
||||||
|
sel=$(whiptail --backtitle "${apptitle}" --title "Kernel" --menu "" 0 0 0 \
|
||||||
|
"${options[@]}" \
|
||||||
|
3>&1 1>&2 2>&3)
|
||||||
|
if [ "$?" = "0" ]; then
|
||||||
|
pkgs+=" ${sel}"
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
echo "pacstrap /mnt ${pkgs}"
|
||||||
|
pacstrap /mnt ${pkgs}
|
||||||
|
pressanykey
|
||||||
|
}
|
||||||
|
|
||||||
|
installfirmware(){
|
||||||
|
clear
|
||||||
|
echo "pacstrap /mnt linux-firmware"
|
||||||
|
pacstrap /mnt linux-firmware
|
||||||
pressanykey
|
pressanykey
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1721,6 +1748,7 @@ loadstrings(){
|
||||||
|
|
||||||
txteditmirrorlist="Edit mirrorlist"
|
txteditmirrorlist="Edit mirrorlist"
|
||||||
txtinstallarchlinux="Install Arch Linux"
|
txtinstallarchlinux="Install Arch Linux"
|
||||||
|
txtinstallfirmware="Install Firmware"
|
||||||
txtconfigarchlinux="Config Arch Linux"
|
txtconfigarchlinux="Config Arch Linux"
|
||||||
|
|
||||||
txtsethostname="Set Computer Name"
|
txtsethostname="Set Computer Name"
|
||||||
|
|
|
@ -60,6 +60,7 @@ txtarchinstallmenu="Arch Install Menu"
|
||||||
|
|
||||||
txteditmirrorlist="Edit mirrorlist"
|
txteditmirrorlist="Edit mirrorlist"
|
||||||
txtinstallarchlinux="Install Arch Linux"
|
txtinstallarchlinux="Install Arch Linux"
|
||||||
|
txtinstallfirmware="Install Firmware"
|
||||||
txtconfigarchlinux="Config Arch Linux"
|
txtconfigarchlinux="Config Arch Linux"
|
||||||
|
|
||||||
txtsethostname="Set Computer Name"
|
txtsethostname="Set Computer Name"
|
||||||
|
|
|
@ -60,6 +60,7 @@ txtarchinstallmenu="Menu Installation Arch Linux"
|
||||||
|
|
||||||
txteditmirrorlist="Éditer mirrorlist"
|
txteditmirrorlist="Éditer mirrorlist"
|
||||||
txtinstallarchlinux="Installer Arch Linux"
|
txtinstallarchlinux="Installer Arch Linux"
|
||||||
|
txtinstallfirmware="Installer les firmwares"
|
||||||
txtconfigarchlinux="Configurer Arch Linux"
|
txtconfigarchlinux="Configurer Arch Linux"
|
||||||
|
|
||||||
txtsethostname="Définir le nom de l'ordinateur"
|
txtsethostname="Définir le nom de l'ordinateur"
|
||||||
|
|
Loading…
Reference in a new issue