diff --git a/.config/bootstrap/install.sh b/.config/bootstrap/install.sh index 3364a91..b8e3e3a 100644 --- a/.config/bootstrap/install.sh +++ b/.config/bootstrap/install.sh @@ -65,6 +65,10 @@ adduserandpass() { \ echo "$name:$pass1" | chpasswd unset pass1 pass2 ;} +deploydialog() { + targetdeployment=$(dialog --title "Deployment Configuration" --radiolist "Select a target package configuration." 0 0 5 desktop "base, network, shell, gui, multimedia, development" on laptop "base, network, shell, gui, multimedia, development, battery, touchpad" off headless "base, network, shell" off none "Installs no packages." off 3>&1 1>&2 2>&3 3>&1) +} + refreshkeys() { \ dialog --infobox "Refreshing Arch Keyring..." 4 40 pacman --noconfirm -Sy archlinux-keyring >/dev/null 2>&1 @@ -190,6 +194,9 @@ getuserandpass || error "User exited." # Give warning if user already exists. usercheck || error "User exited." +# Let user select groups of packages to pre-install. +[ -z "$targetdeployment" ] && $(deploydialog || error "User exited.") + # Last chance for user to back out before install. preinstallmsg || error "User exited."