Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authoradvaithm <advaith.madhukar@gmail.com>2021-04-20 18:43:19 +0530
committeradvaithm <advaith.madhukar@gmail.com>2021-04-20 18:43:19 +0530
commit7afba65c261057808fae8e3cb22ddd89fed31f2b (patch)
treeb3bbc1e58c45ff50bc48fce067df12eb6860eb91 /archinstall/lib
parent636a7b95d52c48e795d728daa02167fbea086d2c (diff)
rebase
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/user_interaction.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 822f63be..9d09d8f1 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 over 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()