Fixed type empty when using efi default

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

View File

@ -205,8 +205,8 @@ create_default_disk_layout() {
local type="${arguments[type]}"
local efi=true
case "$type" in
'bios') efi=false ;;
'efi'|'') efi=true ;;
'bios') efi=false type=bios ;;
'efi'|'') efi=true type=efi ;;
*) die_trace 1 "Invalid argument type=$type, must be one of (bios, efi)" ;;
esac
@ -248,8 +248,8 @@ create_raid0_luks_layout() {
local type="${arguments[type]}"
local efi=true
case "$type" in
'bios') efi=false ;;
'efi'|'') efi=true ;;
'bios') efi=false type=bios ;;
'efi'|'') efi=true type=efi ;;
*) die_trace 1 "Invalid argument type=$type, must be one of (bios, efi)" ;;
esac