Fixed efi being the default type

This commit is contained in:
oddlama 2020-04-21 22:12:18 +02:00
parent 119cdd53ba
commit a334d50921
No known key found for this signature in database
GPG Key ID: 88EA325D51D53908
1 changed files with 6 additions and 6 deletions

View File

@ -205,9 +205,9 @@ create_default_disk_layout() {
local type="${arguments[type]}"
local efi=true
case "$type" in
'bios') efi=false ;;
'efi') efi=true ;;
*) die_trace 1 "Invalid argument type=$type, must be one of (bios, efi)" ;;
'bios') efi=false ;;
'efi'|'') efi=true ;;
*) die_trace 1 "Invalid argument type=$type, must be one of (bios, efi)" ;;
esac
create_gpt new_id=gpt device="$device"
@ -248,9 +248,9 @@ create_raid0_luks_layout() {
local type="${arguments[type]}"
local efi=true
case "$type" in
'bios') efi=false ;;
'efi') efi=true ;;
*) die_trace 1 "Invalid argument type=$type, must be one of (bios, efi)" ;;
'bios') efi=false ;;
'efi'|'') efi=true ;;
*) die_trace 1 "Invalid argument type=$type, must be one of (bios, efi)" ;;
esac
for i in "${!extra_arguments[@]}"; do