From 8457aa5660553faa811f26246059fa4cd84852cd Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 13 Feb 2022 04:09:05 -0500 Subject: Set default bootloader based on presence of UEFI (#980) * Set default bootloader based on presence of UEFI * Correct a comment --- archinstall/lib/menu/selection_menu.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'archinstall') diff --git a/archinstall/lib/menu/selection_menu.py b/archinstall/lib/menu/selection_menu.py index afa713ba..84bb8e2f 100644 --- a/archinstall/lib/menu/selection_menu.py +++ b/archinstall/lib/menu/selection_menu.py @@ -6,6 +6,7 @@ from typing import Callable, Any, List, Iterator from .menu import Menu from ..general import SysCommand, secret +from ..hardware import has_uefi from ..storage import storage from ..output import log from ..profiles import is_desktop_profile @@ -454,7 +455,8 @@ class GlobalMenu(GeneralMenu): self._menu_options['bootloader'] = \ Selector( _('Select bootloader'), - lambda: ask_for_bootloader(storage['arguments'].get('advanced', False)),) + lambda: ask_for_bootloader(storage['arguments'].get('advanced', False)), + default="systemd-bootctl" if has_uefi() else "grub-install") self._menu_options['hostname'] = \ Selector(_('Specify hostname'), lambda: ask_hostname()) self._menu_options['!root-password'] = \ -- cgit v1.2.3-70-g09d2