Reduced complexity in guided for the kernel selection process.

This commit is contained in:
Anton Hvornum 2021-04-27 12:37:16 +02:00
parent 1230fdfe31
commit b6cd5835f1
1 changed files with 5 additions and 8 deletions

View File

@ -189,16 +189,13 @@ def ask_user_questions():
archinstall.arguments['audio'] = None archinstall.arguments['audio'] = None
# Ask what kernel user wants: # Ask what kernel user wants:
while True: if not archinstall.arguments.get("kernels", None):
kernel = generic_select(["linux", "linux-lts", "linux-zen", "continue"], "choose a kernel:") archinstall.log(f"Here you can choose which kernel to use, leave blank for default which is 'linux'.")
if (archinstall.arguments.get("kernels", None) == None):
if (kernel := generic_select(["linux", "linux-lts", "linux-zen", "continue"], "choose a kernel:")):
archinstall.arguments['kernels'] = kernel archinstall.arguments['kernels'] = kernel
else: else:
if (kernel == "continue"): archinstall.arguments['kernels'] = 'linux'
break
archinstall.arguments['kernels'] += "," + kernel
# Additional packages (with some light weight error handling for invalid package names) # Additional packages (with some light weight error handling for invalid package names)
while True: while True: