From a0d88f5ee2114047652f225db14ec7603a599e43 Mon Sep 17 00:00:00 2001 From: goose3228 <39620921+goose3228@users.noreply.github.com> Date: Sat, 16 Nov 2024 10:23:08 +0300 Subject: [PATCH] Warn user when UEFI is disabled (#2806) --- archinstall/lib/interactions/system_conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archinstall/lib/interactions/system_conf.py b/archinstall/lib/interactions/system_conf.py index 0d507c5f..acb8219f 100644 --- a/archinstall/lib/interactions/system_conf.py +++ b/archinstall/lib/interactions/system_conf.py @@ -55,9 +55,11 @@ def ask_for_bootloader(preset: Optional[Bootloader]) -> Optional[Bootloader]: if not SysInfo.has_uefi(): options = [Bootloader.Grub, Bootloader.Limine] default = Bootloader.Grub + header = str(_('UEFI is not detected and some options are disabled')) else: options = [b for b in Bootloader] default = Bootloader.Systemd + header = None items = [MenuItem(o.value, value=o) for o in options] group = MenuItemGroup(items) @@ -66,6 +68,7 @@ def ask_for_bootloader(preset: Optional[Bootloader]) -> Optional[Bootloader]: result = SelectMenu( group, + header=header, alignment=Alignment.CENTER, frame=FrameProperties.min(str(_('Bootloader'))), allow_skip=True