diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-01-12 11:41:39 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-01-12 11:41:39 +0100 |
commit | e12ac9b213ef3e8ecebc0c3052ec7e0e8bd7a31c (patch) | |
tree | 5c0a7a2c9d693603ea052694124a55222ed225fc | |
parent | 1960fd07b1b65da2afe77e9c317210d38aaa0dce (diff) | |
download | archinstall-e12ac9b213ef3e8ecebc0c3052ec7e0e8bd7a31c.tar archinstall-e12ac9b213ef3e8ecebc0c3052ec7e0e8bd7a31c.tar.zst archinstall-e12ac9b213ef3e8ecebc0c3052ec7e0e8bd7a31c.zip |
Test for new check_bootmode.sh.
-rw-r--r-- | stages/first_stage.sh | 12 | ||||
-rw-r--r-- | util/check_bootmode.sh | 3 |
2 files changed, 13 insertions, 2 deletions
diff --git a/stages/first_stage.sh b/stages/first_stage.sh index 75f5b5a..ab99ce1 100644 --- a/stages/first_stage.sh +++ b/stages/first_stage.sh @@ -47,6 +47,18 @@ export admin_username=$(python $REPOSITORY_PATH/util/read_config_string.py $CONF export system_encryption=$(python $REPOSITORY_PATH/util/read_config_string.py $CONFIG_FILE_PATH "system_encryption") +if [ $(check_bootmode.sh) == "Booted with UEFI" ];then + + echo "Booted with UEFI - OK" + +else + + echo "Booted with BIOS - OK" + +fi + +exit + bash confirm_installation.sh $disk bash check_bootmode.sh diff --git a/util/check_bootmode.sh b/util/check_bootmode.sh index 299856a..26f929c 100644 --- a/util/check_bootmode.sh +++ b/util/check_bootmode.sh @@ -21,6 +21,5 @@ if [ -d "/sys/firmware/efi/efivars" ]; then echo "Booted with UEFI" else - echo "Not booted with UEFI. Please enable it in your mainboard settings. - FAILED" - exit + echo "Booted with legacy boot / BIOS" fi |