vconsole-setup: don't fail with an empty keymap

The new meson option 'default-keymap' means that by default there's always
a keymap to configure, so vconsole-setup fails. Allow to set
-Ddefault-keymap="" to disable it and skip gracefully again.

Follow-up for f129d0e77c
This commit is contained in:
Luca Boccassi
2023-07-24 15:43:11 +01:00
parent 739bbc5869
commit 1cd4211068
+1 -1
View File
@@ -280,7 +280,7 @@ static int keyboard_load_and_wait(const char *vc, Context *c, bool utf8) {
map_toggle = context_get_config(c, VC_KEYMAP_TOGGLE);
/* An empty map means kernel map */
if (!map)
if (isempty(map))
return 0;
args[i++] = KBD_LOADKEYS;