diff --git a/installer b/installer index d99f54e..fb98f52 100755 --- a/installer +++ b/installer @@ -386,7 +386,7 @@ main() tput civis dialog --backtitle "$DIST Installer - $SYS - v$VER" --title " Prepare " \ --default-item $SEL --cancel-label 'Exit' --menu "$_prep" 0 0 0 \ - 1 "Storage device management" \ + 1 "Storage management" \ 2 "* Mount partitions" \ 3 "* Select bootloader" \ 4 "* Username and password" \ @@ -416,7 +416,6 @@ main() *) yesno "Exit" "\nUnmount partitions (if any) and exit the installer?\n" && die 0 esac fi - } select_show() @@ -851,26 +850,28 @@ select_packages() dev_menu() { local txt="$1" + local choice='' local back="Return to the main menu" [[ $txt ]] && back="Return to mounting" while :; do - dlg DEVMNG_OPT menu "Device Management" "\nHere you can perform some operations to modify system storage devices.\nSelect an option from the list below to get started\n$txt" \ + dlg choice menu "Device Management" \ + "\nHere you can perform some operations to modify system storage devices.\nSelect an option from the list below to see more.\n$txt" \ 'view' 'View the device tree output from lsblk' \ 'part' 'Modify the partition layout of a device' \ 'luks' 'Setup LUKS encryption on a partition or LVM' \ 'lvm' 'Setup logical volume management on partition(s)' \ 'back' "$back" || return 0 - if [[ $DEVMNG_OPT == 'back' ]]; then + if [[ $choice == 'back' ]]; then return 0 - elif [[ -z $WARN && $DEVMNG_OPT != 'view' ]]; then + elif [[ -z $WARN && $choice != 'view' ]]; then msg "Data Warning" "$_warn" WARN=true fi - case $DEVMNG_OPT in + case "$choice" in 'view') part_show ;; - 'part') part_menu ;; + 'part') part_menu && [[ "$AUTO_ROOT" ]] && return 0 ;; 'luks') luks_menu ;; 'lvm') lvm_menu ;; esac @@ -884,8 +885,9 @@ dev_menu() part_menu() { - is_bg_install || return 0 local device choice devhash + + is_bg_install || return 0 devhash="$(lsblk -f | base64)" umount_dir "$MNT" part_device || return 1