summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2023-08-02 13:51:02 +0300
committernl6720 <nl6720@gmail.com>2023-08-02 13:58:00 +0300
commitff139b40ff910182e4eab52c92cc49bb9628d326 (patch)
tree0b4f1907de21fcc01388c17a09dbf4af2070234a
parentecd1b0b67884d12ba252b44b2a50e26a058d39e0 (diff)
install/sd-vconsole: include the us keymap if KEYMAP is not set
If KEYMAP is not set in /etc/vconsole.conf, systemd-vconsole-setup will fall back to the "us" keymap. Ensure a keymap file is included in initramfs to prevent systemd-vconsole-setup.service from failing.
-rw-r--r--install/sd-vconsole2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/sd-vconsole b/install/sd-vconsole
index eddfee3..382f22f 100644
--- a/install/sd-vconsole
+++ b/install/sd-vconsole
@@ -70,7 +70,7 @@ build() {
# shellcheck disable=SC1091
[[ -s /etc/vconsole.conf ]] && . /etc/vconsole.conf
- [[ -n "$KEYMAP" ]] && add_keymap_file "${KEYMAP}.map"
+ add_keymap_file "${KEYMAP:-us}.map"
[[ -n "$KEYMAP_TOGGLE" ]] && add_keymap_file "${KEYMAP_TOGGLE}.map"
if [[ -n "$FONT_MAP" ]]; then