Don't auto select a boot partition for BIOS systems when only one partition is available

This commit is contained in:
natemaia 2018-07-27 21:51:57 -07:00
parent dec5a7b900
commit a1115047cb

View File

@ -1021,14 +1021,9 @@ select_efi_partition() {
} }
select_bios_boot_partition() { select_bios_boot_partition() {
if (( COUNT == 1 )); then
BOOT_PART="$(awk 'NF > 0 {print $1}' <<< "$PARTS")"
infobox "$_PrepMount" "\nOnly one partition available: $BOOT_PART\n"
else
tput civis tput civis
BOOT_PART="$(dialog --cr-wrap --stdout --backtitle "$BT" --title "$_PrepMount" \ BOOT_PART="$(dialog --cr-wrap --stdout --backtitle "$BT" --title "$_PrepMount" \
--menu "$_SelBiosBody" 0 0 0 "$_Skip" "-" $PARTS)" --menu "$_SelBiosBody" 0 0 0 "$_Skip" "-" $PARTS)"
fi
if [[ $? != 0 || $BOOT_PART == "$_Skip" || $BOOT_PART == "" ]]; then if [[ $? != 0 || $BOOT_PART == "$_Skip" || $BOOT_PART == "" ]]; then
return 0 return 0