From a334d50921792f4cc860ff0afafa0be94ecab2de Mon Sep 17 00:00:00 2001 From: oddlama Date: Tue, 21 Apr 2020 22:12:18 +0200 Subject: [PATCH] Fixed efi being the default type --- scripts/internal_config.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/internal_config.sh b/scripts/internal_config.sh index d8a1d4b..791a761 100644 --- a/scripts/internal_config.sh +++ b/scripts/internal_config.sh @@ -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