Fix bug in mountPart()
This commit is contained in:
parent
25415b6308
commit
0a55f8f93c
|
@ -56,6 +56,7 @@ partDisks() {
|
||||||
if [ $whipStatus -eq 1 ]; then
|
if [ $whipStatus -eq 1 ]; then
|
||||||
autoSelection=false
|
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"
|
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
|
gdisk $disk
|
||||||
parts=$(lsblk $disk -pnl | sed -n '2~1p' | wc -l)
|
parts=$(lsblk $disk -pnl | sed -n '2~1p' | wc -l)
|
||||||
[ $parts -lt 2 ] && logAndExit "You must at least create boot and root partitions." "partDisks"
|
[ $parts -lt 2 ] && logAndExit "You must at least create boot and root partitions." "partDisks"
|
||||||
|
@ -158,7 +159,7 @@ formatPart() {
|
||||||
mountPart() {
|
mountPart() {
|
||||||
mount "$rootPart" /mnt 2>&1 | debug
|
mount "$rootPart" /mnt 2>&1 | debug
|
||||||
if [ $autoSelection = false ]; then
|
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"
|
exitIfCancel "You must select a path." "partDisks"
|
||||||
if [ "$result" = "OTHER" ]; then
|
if [ "$result" = "OTHER" ]; then
|
||||||
local IFS=' '
|
local IFS=' '
|
||||||
|
|
Loading…
Reference in New Issue