Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-04 07:31:38 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-04 07:31:38 +0530
commit374cbfc20daa79ba3ad24b277e4303c7914c8335 (patch)
tree922a3554502ca2ef72ce98e2e0eb2506c48f19b8 /archinstall/lib
parent15925170423134025fa8aa34e5397185e4093e13 (diff)
Revert "Revert "added hardwareincompatibilty erros and updated readme""
This reverts commit 15925170423134025fa8aa34e5397185e4093e13.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/installer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 1411688c..e38860d3 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -331,6 +331,8 @@ class Installer():
self.log(f'Adding bootloader {bootloader} to {self.boot_partition}', level=LOG_LEVELS.Info)
if bootloader == 'systemd-bootctl':
+ if not hasUEFI():
+ raise HardwareIncompatibilityError
# TODO: Ideally we would want to check if another config
# points towards the same disk and/or partition.
# And in which case we should do some clean up.