diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-03-17 18:54:26 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-03-17 18:54:26 +0100 |
commit | 70e14eed39cb5c3b0f1220a2ff19851a85b9a90a (patch) | |
tree | a3ab5c0fb19fd9408616d23e8d4bf5926ddde1fd | |
parent | f2fe1d86547458435c28ac96e023ee1cd773e161 (diff) | |
download | archinstall-70e14eed39cb5c3b0f1220a2ff19851a85b9a90a.tar archinstall-70e14eed39cb5c3b0f1220a2ff19851a85b9a90a.tar.zst archinstall-70e14eed39cb5c3b0f1220a2ff19851a85b9a90a.zip |
Implement Formatting for BIOS without LUKS
-rw-r--r-- | stages/first_stage.sh | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/stages/first_stage.sh b/stages/first_stage.sh index 2dc2ee7..204548f 100644 --- a/stages/first_stage.sh +++ b/stages/first_stage.sh @@ -97,20 +97,27 @@ fi if [ "$luks_encryption" == "no" ];then if [ "$boot_mode" == "bios" ];then - echo "no/bios" + mkfs.ext4 ${disk_path}1 + e2label ${disk_path}1 "ROOT" elif [ "$boot_mode" == "uefi" ];then - echo "no/uefi" + echo "Sorry, UEFI is not ready to use ..." + exit 1 else - echo "oh no" + echo "Unknown boot_mode! - FAILED" + exit 1 fi elif [ "$luks_encryption" == "yes" ];then + echo "Sorry, LUKS encryption is not ready to use ..." + exit 1 if [ "$boot_mode" == "bios" ];then echo "yes/bios" elif [ "$boot_mode" == "uefi" ];then echo "yes/uefi" else - echo "oh no" + echo "Unknown boot_mode! - FAILED" + exit 1 fi else - echo "oh no" + echo "luks_encryption not 'yes' or 'no'! - FAILED" + exit 1 fi |