index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Werner Llácer <wllacer@gmail.com> | 2022-01-15 14:17:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 14:17:04 +0100 |
commit | 6b4f09ef0165629ad63f4d15ec5fde986d2f7417 (patch) | |
tree | c72b9f65c3e5b7339b2c3047f03e2e8e5f18936f /archinstall | |
parent | b533bd0553b094a201e11d47df8206cdd85c8f1c (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 10 | ||||
-rw-r--r-- | archinstall/lib/menu/selection_menu.py | 2 | ||||
-rw-r--r-- | archinstall/lib/user_interaction.py | 1 |
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 6e4a6193..32074e5c 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -89,9 +89,11 @@ class Installer: if base_packages is None: base_packages = __packages__[:3] if kernels is None: - kernels = ['linux'] - - self.kernels = kernels + self.kernels = ['linux'] + elif isinstance(kernels,str): + self.kernels = [kernels] + else: + self.kernels = kernels self.target = target self.init_time = time.strftime('%Y-%m-%d_%H-%M-%S') self.milliseconds = int(str(time.time()).split('.')[1]) @@ -102,7 +104,7 @@ class Installer: } self.base_packages = base_packages.split(' ') if type(base_packages) is str else base_packages - for kernel in kernels: + for kernel in self.kernels: self.base_packages.append(kernel) # If using accessibility tools in the live environment, append those to the packages list diff --git a/archinstall/lib/menu/selection_menu.py b/archinstall/lib/menu/selection_menu.py index 9eb022a6..82e8c47e 100644 --- a/archinstall/lib/menu/selection_menu.py +++ b/archinstall/lib/menu/selection_menu.py @@ -179,7 +179,7 @@ class GlobalMenu: Selector( 'Select kernels', lambda: archinstall.select_kernel(), - default='linux') + default=['linux']) self._menu_options['packages'] = \ Selector( 'Additional packages to install', diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py index c213a941..0ce19346 100644 --- a/archinstall/lib/user_interaction.py +++ b/archinstall/lib/user_interaction.py @@ -910,7 +910,6 @@ def select_kernel() -> List[str]: multi=True, default_option=default_kernel ).run() - return selected_kernels |