[PATCH] Allow customised xkeyboard-config package in initrd

  • Open
  • quality assurance status badge
Details
2 participants
  • henkjan gersen
  • Maxime Devos
Owner
unassigned
Submitted by
Maxime Devos
Severity
normal
M
M
Maxime Devos wrote on 5 Jan 2021 22:37
(address . guix-patches@gnu.org)
76bcd66b8a02aff74ad75c506d2d11f62bce09d2.camel@telenet.be
Hi Guix!

This patch *should* allow using a custom xkeyboard-config
package the initrd. (moesasji was interested in such a thing
on January the fourth on #guix)
‘make check’ doesn't give any error messages. However, I don't
have any custom xkeyboard-config package to test this with,
so I'll leave that to interested people.
--
Maxime Devos <maximedevos@telenet.be>
PGP Key: C1F3 3EE2 0C52 8FDB 7DD7 011F 49E3 EE22 1917 25EE
Freenode handle: mdevos
Attachment: file
-----BEGIN PGP SIGNATURE-----

iI0EABYIADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCX/TcAhccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7uxhAQDzuecTtJdlUTlvZY4wv0HgQIZ5
vzHM9OsSXUsi7sebrAEAvyVox2E/ZltsRdsDpMrGblLKhvQbXJ9DiPw4xr72TA8=
=wU5r
-----END PGP SIGNATURE-----


H
H
henkjan gersen wrote on 6 Jan 2021 00:27
(address . maximedevos@telenet.be)(address . guix-patches@gnu.org)
CAGf6y9h=EH3Nnb+DccVE=A3wPzCyov1ss=7wL0VFQWV5iaSMRw@mail.gmail.com
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 the
keymaps defined in xkeyboard-config are in an xkb format and need to
be converted to the correct format to allow them to be loaded in an
initrd. For the console keymap layout ckbcomp is used in keyboard.scm
to do this conversion that is then loaded by loadkeys, which is a
pretty elegant approach. I actually don't know how the keymaps used in
an initrd are defined or whether it is even needed to add them as they
wouldn't help for the disk decryption password.

Note that my original question was how I could replace
xkeyboard-config for a patched version that has my own customized
keyboard layout included; this does mean that any patch that adds
keyboard layouts to initrd can be tested using the standard keyboard
layouts that are available in the "standard" xkeyboard-config. If it
works for existing layouts included it should also work for additional
keyboard layouts I add to my version of xkeyboard-config.
?