Fix issue from language selection.

This commit is contained in:
Anton Hvornum 2021-05-22 21:00:11 +02:00
parent 1bc218b2e1
commit a9efdac615
1 changed files with 6 additions and 6 deletions

View File

@ -54,14 +54,14 @@ def ask_user_questions():
if not archinstall.arguments.get('sys-language', None) and archinstall.arguments.get('advanced', False):
archinstall.arguments['sys-language'] = input("Enter a valid locale (language) for your OS, (Default: en_US): ").strip()
archinstall.arguments['sys-encoding'] = input("Enter a valid system default encoding for your OS, (Default: utf-8): ").strip()
if not archinstall.arguments['sys-language']:
archinstall.arguments['sys-language'] = 'en_US'
if not archinstall.arguments['sys-encoding']:
archinstall.arguments['sys-encoding'] = 'utf-8'
archinstall.log("Keep in mind that if you want multiple locales, post configuration is required.", fg="yellow")
if not archinstall.arguments['sys-language']:
archinstall.arguments['sys-language'] = 'en_US'
if not archinstall.arguments['sys-encoding']:
archinstall.arguments['sys-encoding'] = 'utf-8'
# Ask which harddrive/block-device we will install to
if archinstall.arguments.get('harddrive', None):
archinstall.arguments['harddrive'] = archinstall.BlockDevice(archinstall.arguments['harddrive'])