Hi Guix! This patch *should* allow using a custom xkeyboard-configpackage the initrd. (moesasji was interested in such a thingon January the fourth on #guix)‘make check’ doesn't give any error messages. However, I don'thave any custom xkeyboard-config package to test this with,so I'll leave that to interested people.-- Maxime Devos <firstname.lastname@example.org>PGP Key: C1F3 3EE2 0C52 8FDB 7DD7 011F 49E3 EE22 1917 25EEFreenode handle: mdevos
From 85d509121b95d4da7048b045d41d57a2e71efc8f Mon Sep 17 00:00:00 2001From: Maxime Devos <email@example.com>Date: Tue, 5 Jan 2021 22:20:42 +0100Subject: [PATCH] gnu: Allow custom xkeyboard-config package in initrd * gnu/system/linux-initrd.scm (raw-initrd): New argument xkeyboard-config.* gnu/system/linux-initrd.scm (base-initrd): Likewise.* doc/contributing.texi (raw-initrd): Document new argument.* doc/contributing.texi (base-initrd): Likewise.--- doc/guix.texi | 13 ++++++++++--- gnu/system/linux-initrd.scm | 17 +++++++++++++++-- 2 files changed, 25 insertions(+), 5 deletions(-)
As I triggered this patch with my question on the chat.... Looking at the patch I don't think it does what is intended as thekeymaps defined in xkeyboard-config are in an xkb format and need tobe converted to the correct format to allow them to be loaded in aninitrd. For the console keymap layout ckbcomp is used in keyboard.scmto do this conversion that is then loaded by loadkeys, which is apretty elegant approach. I actually don't know how the keymaps used inan initrd are defined or whether it is even needed to add them as theywouldn't help for the disk decryption password. Note that my original question was how I could replacexkeyboard-config for a patched version that has my own customizedkeyboard layout included; this does mean that any patch that addskeyboard layouts to initrd can be tested using the standard keyboardlayouts that are available in the "standard" xkeyboard-config. If itworks for existing layouts included it should also work for additionalkeyboard layouts I add to my version of xkeyboard-config.