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