From 4545ef322888e31db861f08e7d2b220eaf1eea74 Mon Sep 17 00:00:00 2001 From: happymab Date: Sat, 15 Jun 2024 11:58:25 +0700 Subject: [PATCH 1/3] initial implementation. Not tested yet. --- usr/lib/tik/modules/pre/10-welcome | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/usr/lib/tik/modules/pre/10-welcome b/usr/lib/tik/modules/pre/10-welcome index 6c68804..5879a95 100644 --- a/usr/lib/tik/modules/pre/10-welcome +++ b/usr/lib/tik/modules/pre/10-welcome @@ -30,7 +30,17 @@ checkLaptop() { fi } +verify_efi() { + # Verify that the system was booted with EFI, exit with error if not + if [ ! -d /sys/firmware/efi ]; then + # System was not booted with EFI + local error_msg="Aeon requires EFI mode.\nEFI is not present on this system. You might check if EFI can be enabled in the BIOS settings." + error "${error_msg}" + fi +} + proceedInstall +verify_efi checkLaptop From 50051e832d8fb3d9e8d12f4f4e83d44befb6faec Mon Sep 17 00:00:00 2001 From: happymab Date: Sun, 16 Jun 2024 09:05:07 +0700 Subject: [PATCH 2/3] Refined error message. Tested with UEFI system with inverted check. --- usr/lib/tik/modules/pre/10-welcome | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/tik/modules/pre/10-welcome b/usr/lib/tik/modules/pre/10-welcome index 5879a95..dc5c4ae 100644 --- a/usr/lib/tik/modules/pre/10-welcome +++ b/usr/lib/tik/modules/pre/10-welcome @@ -34,7 +34,7 @@ verify_efi() { # Verify that the system was booted with EFI, exit with error if not if [ ! -d /sys/firmware/efi ]; then # System was not booted with EFI - local error_msg="Aeon requires EFI mode.\nEFI is not present on this system. You might check if EFI can be enabled in the BIOS settings." + local error_msg="openSUSE Aeon requires EFI mode, which is not found on your system.\nPlease check your BIOS settings to see if EFI can be enabled." error "${error_msg}" fi } From a44e86a8cb0863159047729a560a8a37ccbe03f2 Mon Sep 17 00:00:00 2001 From: happymab Date: Sun, 16 Jun 2024 09:05:39 +0700 Subject: [PATCH 3/3] Error message UEFI instead of EFI --- usr/lib/tik/modules/pre/10-welcome | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/tik/modules/pre/10-welcome b/usr/lib/tik/modules/pre/10-welcome index dc5c4ae..ad06086 100644 --- a/usr/lib/tik/modules/pre/10-welcome +++ b/usr/lib/tik/modules/pre/10-welcome @@ -34,7 +34,7 @@ verify_efi() { # Verify that the system was booted with EFI, exit with error if not if [ ! -d /sys/firmware/efi ]; then # System was not booted with EFI - local error_msg="openSUSE Aeon requires EFI mode, which is not found on your system.\nPlease check your BIOS settings to see if EFI can be enabled." + local error_msg="openSUSE Aeon requires UEFI mode, which is not found on your system.\nPlease check your BIOS settings to see if UEFI can be enabled." error "${error_msg}" fi }