From f6460b8634d2ac3bbdec5e7dc542b07ac1badea5 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 11 Nov 2020 22:11:13 +0000 Subject: Fixed a bug where no locale generated a hang because loadkeys needs at least one option in set_keyboard_language() --- examples/guided.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/guided.py b/examples/guided.py index 6c8f59c8..8378fc6b 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -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. -- cgit v1.2.3-70-g09d2