Fix: empty mount options
This commit is contained in:
parent
2c9759ac34
commit
7324ec38cb
@ -107,13 +107,14 @@ select_mount_opts()
|
||||
|
||||
tput civis
|
||||
if ! MNT_OPTS="$(dialog --cr-wrap --stdout --backtitle "$BT" --title " $title " \
|
||||
--checklist "$_MntBody" 0 0 0 $opts | sed 's/ /,/g; $s/,$//')"; then
|
||||
--checklist "$_MntBody" 0 0 0 $opts | sed 's/ /,/g; $s/,$//')" || [[ $MNT_OPTS == "" ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if ! yesno "$title" "$_MntConfBody $MNT_OPTS\n"; then
|
||||
select_mount_opts "$part" "$fs" || return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -225,7 +225,6 @@ auto_partition()
|
||||
# confirm or bail
|
||||
yesno "$_PrepParts" "$_PartBody1 $device $msg ($size)$_PartBody3" || return 0
|
||||
infobox "$_PrepParts" "\nRemoving existing partitions on $device and setting partition table to $table\n" 1
|
||||
|
||||
swapoff -a # in case the device was previously used for swap
|
||||
|
||||
local dev_info
|
||||
|
Reference in New Issue
Block a user