Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSecondThundeR <awayfromgalaxy@gmail.com>2021-05-06 21:38:20 +0300
committerSecondThundeR <awayfromgalaxy@gmail.com>2021-05-06 21:38:20 +0300
commit493814d8bd9a89089c6bedf82f9c85ca7075edfb (patch)
treebbbdb1b4f21f9f80114d2b495ad8a90bae1e70f7
parentefadd4a42694d87b3fe86bd7bcedf1da9a9e1773 (diff)
Add default graphics card driver option
-rw-r--r--archinstall/lib/user_interaction.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index 81f04db4..aea708c8 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -673,6 +673,7 @@ def select_driver(options=AVAILABLE_GFX_DRIVERS):
"""
drivers = sorted(list(options))
+ default_option = options["All open-source (default)"]
if drivers:
lspci = sys_command(f'/usr/bin/lspci')
@@ -683,7 +684,11 @@ def select_driver(options=AVAILABLE_GFX_DRIVERS):
elif b'amd' in line.lower():
print(' ** AMD card detected, suggested driver: AMD / ATI **')
- initial_option = generic_select(drivers, input_text="Select your graphics card driver: ", allow_empty_input=False)
+ initial_option = generic_select(drivers, input_text="Select your graphics card driver: ")
+
+ if not initial_option:
+ return default_option
+
selected_driver = options[initial_option]
if type(selected_driver) == dict: