From 7fbd22f8bf320e26ccd9e0a12d50aa554128dbf0 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 11 Mar 2019 12:21:56 +0100 Subject: [PATCH] add deployment choice dialog --- .config/bootstrap/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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."