add deployment choice dialog
This commit is contained in:
parent
2681a38dab
commit
7fbd22f8bf
1 changed files with 7 additions and 0 deletions
|
|
@ -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."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue