You are not logged in.

#1 2026-08-12 12:14:54

cutecoder
Member
Registered: 2023-08-24
Posts: 15

[SOLVED] Keymap using include can not be early loaded with sd-vconsole

I switched to sd-vconsole and it came with an issue.

I had used a personal keymap which does no longer work, the error in the journal was that there is no such file /usr/share/kbd/keymaps/personal.map. This however magically fixed itself.
But I encountered a different issue because my personal keymap is using an include.

/usr/share/kbd/keymaps/personal.map:

include "/usr/share/kbd/keymaps/i386/colemak/colemak.map.gz"

keycode 58 = Escape

When I would manually paste the file where the "include" is, it all worked. So this include file is not part of the initramfs.
I then tried to add the file to "FILES" in mkinitcpio.conf and that partly worked. The file was found but then within the colemak file "qwerty-layout" was not found even though this worked when I pasted the file in my personal map.

I used lsinitcpio to investigate the discrepancy.
When I paste the include file, the hook seems to detect the include statements in the keymap file I specified in vconsole.conf and automatically adds to the initramfs. But when I have the /usr/share/.... included, it no longer does that and leaves me with just the personal.map file.

So my question boils down to: Why does it not detect the include in that case and automatically add all the files to the initramfs?

Now other than an annoying error message in early boot stages, this does not actually hurt at all. It's just irritating.

Last edited by cutecoder (2026-08-16 17:14:05)


They said get Archlinux, it'll be fun they said... ZOMG I LOVE ARCH

Offline

#2 2026-08-12 21:03:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: [SOLVED] Keymap using include can not be early loaded with sd-vconsole

Tried

include "colemak.map"

?

Offline

#3 2026-08-13 08:59:44

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

Re: [SOLVED] Keymap using include can not be early loaded with sd-vconsole

Please test if archlinux/mkinitcpio/mkinitcpio!484 helps!

Offline

#4 2026-08-15 12:11:09

cutecoder
Member
Registered: 2023-08-24
Posts: 15

Re: [SOLVED] Keymap using include can not be early loaded with sd-vconsole

seth wrote:

Tried

include "colemak.map"

?

This actually is a step forward! Now mkinitcpio adds the appropiate files. However, loadkeys does not understand this include (based on an error in the journal which also appeared in the root system: "cannot open include file colemak.map"). With some testing it occured to me that loadkeys, when there is a relative path only includes .inc files. I'm not sure with that, maybe it's a specific preset of names, it is just an observation based on other relative include statements I have seen/tried.

nl6720 wrote:

Yes, this works!
I first did not actually find the added colemak file in lsinitcpio because it is weirdly disconnected from the other files, I'm not sure why there is this gap (as in a lot of files printed in between).
It's not a problem to me but good to know.

Last edited by cutecoder (2026-08-15 13:21:41)


They said get Archlinux, it'll be fun they said... ZOMG I LOVE ARCH

Offline

#5 2026-08-15 16:11:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: [SOLVED] Keymap using include can not be early loaded with sd-vconsole

I kinda knew there was another thread but couldn't find it lol

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB