You are not logged in.

#1 2023-03-22 12:20:36

marvinia
Member
Registered: 2018-06-05
Posts: 12

[solved] mkinitcpio keymap error

Hello,

after upgrading mkinitcpio (34-2 -> 35.1-1) I get the following error:

> Running build hook: [keymap]
loadkeys: Unable to open file: : No such file or directory

This leads to an empty keymap.bin inside initramfs.

As result I have to type my crypt-password on a english keymap while using a german keyboard.


# loadkeys de -v

shows no problems, the keymap 'de' exists.

Best regards

Last edited by marvinia (2023-03-22 13:35:17)

Offline

#2 2023-03-22 13:02:33

seth
Member
Registered: 2012-09-03
Posts: 51,648

Offline

#3 2023-03-22 13:10:13

marvinia
Member
Registered: 2018-06-05
Posts: 12

Re: [solved] mkinitcpio keymap error

$ cat /etc/{vconsole,locale}.conf
KEYMAP=de
# This is the fallback locale configuration provided by systemd.

LANG="C"

Offline

#4 2023-03-22 13:18:34

seth
Member
Registered: 2012-09-03
Posts: 51,648

Re: [solved] mkinitcpio keymap error

Since the LANG is non-unicode (really??) and the missing file is literally empty, I suspect the empty "$uc" to cause this.

While this wouold be a bug that should be reported against mkinitcpio, https://wiki.archlinux.org/title/Locale
Fix your locale, use C.UTF-8 in doubt.
A shit-ton of stuff blindly relies on a utf8 locale these days.

Offline

#5 2023-03-22 13:34:42

marvinia
Member
Registered: 2018-06-05
Posts: 12

Re: [solved] mkinitcpio keymap error

Thank you seth!

Already after your 1st reply i edited my locale.conf to:

LANG=de_DE.UTF-8
LC_MESSAGES=en_US.UTF-8

The problem is solved.

Wish you a nice day!


Edit: There is already a bug report: https://bugs.archlinux.org/task/77949

Last edited by marvinia (2023-03-22 13:49:24)

Offline

#6 2023-03-22 16:07:11

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 599

Re: [solved] mkinitcpio keymap error

A potential fix: https://gitlab.archlinux.org/archlinux/ … quests/230
Please test!

Edit: The fix is included in mkinitcpio 35.2-1.

Last edited by nl6720 (2023-03-24 12:09:34)

Offline

Board footer

Powered by FluxBB