Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/models
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-12-01 09:59:44 -0500
committerGitHub <noreply@github.com>2023-12-01 15:59:44 +0100
commit5db4456dba9f8c85ff70e545fa5bb3d6a37bd265 (patch)
tree177f4d5f8f369f180edeace344b5c4fe4055329f /archinstall/lib/models
parent2aeb1b5762cce5646515f213b366b71367c1dc17 (diff)
Restrict UKI to supported options (#2280)
Diffstat (limited to 'archinstall/lib/models')
-rw-r--r--archinstall/lib/models/bootloader.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/archinstall/lib/models/bootloader.py b/archinstall/lib/models/bootloader.py
index fa3f32c8..aa1a8e27 100644
--- a/archinstall/lib/models/bootloader.py
+++ b/archinstall/lib/models/bootloader.py
@@ -14,6 +14,13 @@ class Bootloader(Enum):
Efistub = 'Efistub'
Limine = 'Limine'
+ def has_uki_support(self) -> bool:
+ match self:
+ case Bootloader.Efistub | Bootloader.Systemd:
+ return True
+ case _:
+ return False
+
def json(self) -> str:
return self.value