From 0a55f8f93cd00c2742e9dc225db134cbad6daa3b Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Mon, 3 Jan 2022 20:34:03 -0300 Subject: [PATCH] Fix bug in mountPart() --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1537662..377e3fe 100755 --- a/install.sh +++ b/install.sh @@ -56,6 +56,7 @@ partDisks() { if [ $whipStatus -eq 1 ]; then autoSelection=false calcHeightAndRun "whiptail --msgbox \"You will partition the disk yourself with gdisk and then, when finished, you will continue with the installation.\" HEIGHT 62 3>&1 1>&2 2>&3" + # TODO: Let the user choose the program gdisk $disk parts=$(lsblk $disk -pnl | sed -n '2~1p' | wc -l) [ $parts -lt 2 ] && logAndExit "You must at least create boot and root partitions." "partDisks" @@ -158,7 +159,7 @@ formatPart() { mountPart() { mount "$rootPart" /mnt 2>&1 | debug if [ $autoSelection = false ]; then - result=$(whiptail --title "Select where to mount boot partition." 0 0 0 "/boot/efi" "" "/boot" "" "OTHER" "") + result=$(whiptail --title "Select where to mount boot partition." --menu "" 0 0 0 "/boot/efi" "" "/boot" "" "OTHER" "") exitIfCancel "You must select a path." "partDisks" if [ "$result" = "OTHER" ]; then local IFS=' '