Fixed a bug where no locale generated a hang because loadkeys needs at least one option in set_keyboard_language()

This commit is contained in:
Anton Hvornum 2020-11-11 22:11:13 +00:00
parent 72f9c07e43
commit f6460b8634
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ archinstall.sys_command(f'cryptsetup close /dev/mapper/luksloop', suppress_error
will we continue with the actual installation steps.
"""
keyboard_language = archinstall.select_language(archinstall.list_keyboard_languages())
archinstall.set_keyboard_language(keyboard_language)
if len(keyboard_language := archinstall.select_language(archinstall.list_keyboard_languages()).strip()):
archinstall.set_keyboard_language(keyboard_language)
# Create a storage structure for all our information.
# We'll print this right before the user gets informed about the formatting timer.