Don't auto select a boot partition for BIOS systems when only one partition is available
This commit is contained in:
parent
dec5a7b900
commit
a1115047cb
@ -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
|
||||||
|
Reference in New Issue
Block a user