summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stages/first_stage.sh12
-rw-r--r--util/check_bootmode.sh3
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