diff options
Diffstat (limited to 'archfi')
-rw-r--r-- | archfi | 38 |
1 files changed, 33 insertions, 5 deletions
@@ -12,7 +12,7 @@ # referance : https://wiki.archlinux.org/index.php/Installation_guide -apptitle="Arch Linux Fast Install (archfi) - Version: 2019.10.06.21.58.07 (GPLv3)" +apptitle="Arch Linux Fast Install (archfi) - Version: 2019.11.02.00.13.01 (GPLv3)" baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master skipfont="0" @@ -727,7 +727,8 @@ installmenu(){ options=() options+=("${txtselectmirrorsbycountry}" "(${txtoptional})") options+=("${txteditmirrorlist}" "(${txtoptional})") - options+=("${txtinstallarchlinux}" "pacstrap base linux") + options+=("${txtinstallarchlinux}" "pacstrap base kernel") + options+=("${txtinstallfirmware}" "(${txtoptional}) pacstrap linux-firmware") options+=("${txtconfigarchlinux}" "") sel=$(whiptail --backtitle "${apptitle}" --title "${txtinstallmenu}" --menu "" --cancel-button "${txtunmount}" --default-item "${nextitem}" 0 0 0 \ "${options[@]}" \ @@ -743,7 +744,12 @@ installmenu(){ nextitem="${txtinstallarchlinux}" ;; "${txtinstallarchlinux}") - installbase + if(installbase) then + nextitem="${txtinstallfirmware}" + fi + ;; + "${txtinstallfirmware}") + installfirmware nextitem="${txtconfigarchlinux}" ;; "${txtconfigarchlinux}") @@ -778,8 +784,29 @@ selectmirrorsbycountry() { installbase(){ clear - echo "pacstrap /mnt base linux" - pacstrap /mnt base linux + pkgs="base" + 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 } @@ -1747,6 +1774,7 @@ loadstrings(){ txtselectcountry="Select country" txteditmirrorlist="Edit mirrorlist" txtinstallarchlinux="Install Arch Linux" + txtinstallfirmware="Install Firmware" txtconfigarchlinux="Config Arch Linux" txtsethostname="Set Computer Name" |