index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2021-04-27 12:30:00 +0200 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2021-04-27 12:30:00 +0200 |
commit | 1230fdfe318ccb8e7c22eeec954969a87efd2b99 (patch) | |
tree | d933328da273a87915df1cdb0f99b3dce7472018 /archinstall/lib/user_interaction.py | |
parent | 847cb3d032498e03f27b9bffede04faa5ac4361f (diff) | |
parent | 1f6094ea594785cae105d34b8c0e4bbc6fb71927 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction.py | 14 |
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py index f801ec83..e38f5311 100644 --- a/archinstall/lib/user_interaction.py +++ b/archinstall/lib/user_interaction.py @@ -7,7 +7,7 @@ from .output import log, LOG_LEVELS from .storage import storage from .networking import list_interfaces from .general import sys_command -from .hardware import AVAILABLE_GFX_DRIVERS +from .hardware import AVAILABLE_GFX_DRIVERS, hasUEFI ## TODO: Some inconsistencies between the selection processes. ## Some return the keys from the options, some the values? @@ -143,7 +143,17 @@ def ask_for_a_timezone(): level=LOG_LEVELS.Warning, fg='red' ) - + +def ask_for_bootloader() -> str: + bootloader = "systemd-bootctl" + if hasUEFI()==False: + bootloader="grub-install" + else: + bootloader_choice = input("Would you like to use GRUB as a bootloader instead of systemd-boot? [y/N] ").lower() + if bootloader_choice == "y": + bootloader="grub-install" + return bootloader + def ask_for_audio_selection(): audio = "pulseaudio" # Default for most desktop environments pipewire_choice = input("Would you like to install pipewire instead of pulseaudio as the default audio server? [Y/n] ").lower() |