From 1bce561a0ca22d6735f9a46ee39e5e22e0c17cb8 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 25 Apr 2022 10:20:00 +0200 Subject: Bumped up default timout, as 5 seconds is not enough for some platforms. --- archinstall/lib/installer.py | 4 ++-- archinstall/lib/menu/selection_menu.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'archinstall') diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 9959b0a8..14a2a703 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -740,14 +740,14 @@ class Installer: else: loader_data = [ f"default {self.init_time}", - "timeout 5" + "timeout 15" ] with open(f'{self.target}/boot/loader/loader.conf', 'w') as loader: for line in loader_data: if line[:8] == 'default ': loader.write(f'default {self.init_time}_{self.kernels[0]}\n') - elif line[:8] == '#timeout' and 'timeout 5' not in loader_data: + elif line[:8] == '#timeout' and 'timeout 15' not in loader_data: # We add in the default timeout to support dual-boot loader.write(f"{line[1:]}\n") else: diff --git a/archinstall/lib/menu/selection_menu.py b/archinstall/lib/menu/selection_menu.py index 25a8b9e8..b2f99423 100644 --- a/archinstall/lib/menu/selection_menu.py +++ b/archinstall/lib/menu/selection_menu.py @@ -181,7 +181,7 @@ class GeneralMenu: ;type preview_size: float (range 0..1) """ - self._enabled_order = [] + self._enabled_order :List[str] = [] self._translation = Translation.load_nationalization() self.is_context_mgr = False self._data_store = data_store if data_store is not None else {} -- cgit v1.2.3-70-g09d2