Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/models/bootloader.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/models/bootloader.py')
-rw-r--r--archinstall/lib/models/bootloader.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/archinstall/lib/models/bootloader.py b/archinstall/lib/models/bootloader.py
index 38254c99..e21cda33 100644
--- a/archinstall/lib/models/bootloader.py
+++ b/archinstall/lib/models/bootloader.py
@@ -1,12 +1,11 @@
from __future__ import annotations
-import logging
import sys
from enum import Enum
from typing import List
-from ..hardware import has_uefi
-from ..output import log
+from ..hardware import SysInfo
+from ..output import warn
class Bootloader(Enum):
@@ -23,7 +22,7 @@ class Bootloader(Enum):
@classmethod
def get_default(cls) -> Bootloader:
- if has_uefi():
+ if SysInfo.has_uefi():
return Bootloader.Systemd
else:
return Bootloader.Grub
@@ -35,6 +34,6 @@ class Bootloader(Enum):
if bootloader not in cls.values():
values = ', '.join(cls.values())
- log(f'Invalid bootloader value "{bootloader}". Allowed values: {values}', level=logging.WARN)
+ warn(f'Invalid bootloader value "{bootloader}". Allowed values: {values}')
sys.exit(1)
return Bootloader(bootloader)