Update mountPart()
This commit is contained in:
parent
4d8107040c
commit
a6cb5b36aa
|
@ -159,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." --menu "" 0 0 0 "/boot/efi" "" "/boot" "" "OTHER" "" 3>&1 1>&2 2>&3)
|
bootPath=$(whiptail --title "Select where to mount boot partition." --menu "" 0 0 0 "/boot/efi" "" "/boot" "" "OTHER" "" 3>&1 1>&2 2>&3)
|
||||||
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=' '
|
||||||
|
@ -167,15 +167,14 @@ mountPart() {
|
||||||
exitIfCancel "You must enter a path." "partDisks"
|
exitIfCancel "You must enter a path." "partDisks"
|
||||||
bootPath=$(echo $result | sed 's/^\///g')
|
bootPath=$(echo $result | sed 's/^\///g')
|
||||||
mkdir -p "/mnt/$bootPath"
|
mkdir -p "/mnt/$bootPath"
|
||||||
while [[ ! -d "/mnt/$result" ]]; do
|
while [[ ! -d "/mnt/$bootPath" ]]; do
|
||||||
result=$(whiptail --inputbox "Path isn't valid. Please try again" 0 0 3>&1 1>&2 2>&3)
|
result=$(whiptail --inputbox "Path isn't valid. Please try again" 0 0 3>&1 1>&2 2>&3)
|
||||||
exitIfCancel "You must enter a path." "partDisks"
|
exitIfCancel "You must enter a path." "partDisks"
|
||||||
bootPath=$(echo $result | sed 's/^\///g')
|
bootPath=$(echo $result | sed 's/^\///g')
|
||||||
mkdir -p "/mnt/$bootPath"
|
mkdir -p "/mnt/$bootPath"
|
||||||
done
|
done
|
||||||
result=$bootPath
|
|
||||||
fi
|
fi
|
||||||
mount "$bootPart" "/mnt/$result" 2>&1 | debug
|
mount "$bootPart" "/mnt/$bootPath" 2>&1 | debug
|
||||||
else
|
else
|
||||||
mkdir -p /mnt/boot/efi
|
mkdir -p /mnt/boot/efi
|
||||||
mount "$bootPart" /mnt/boot/efi 2>&1 | debug
|
mount "$bootPart" /mnt/boot/efi 2>&1 | debug
|
||||||
|
|
Loading…
Reference in New Issue