Bug#874364: [pkg-cryptsetup-devel] Bug#874364: Keyboard layout set in GNOME or with localectl does not apply to initramfs LUKS prompt immediately

Guilhem Moulin guilhem at debian.org
Fri Aug 17 14:44:49 BST 2018


On Fri, 17 Aug 2018 at 10:44:55 +0100, Simon McVittie wrote:
> having systemd-localed regenerate the initramfs whenever the
> system-wide default keyboard layout is set seems disproportionate?
 
This is only needed on systems where initramfs.conf(5) sets KEYMAP="y",
but maybe it's not so easy to determine as mkinitramfs *sources*
/etc/initramfs-tools/initramfs.conf, /etc/initramfs-tools/conf.d/*, as
well as /usr/share/initramfs-tools/conf-hooks.d/*, and the ‘KEYMAP’
variable can be set in any of these.  cryptsetup-initramfs' own
/usr/share/initramfs-tools/conf-hooks.d/cryptsetup sets it for instance
(override settings in /etc/initramfs-tools).

> From <https://bugzilla.redhat.com/show_bug.cgi?id=880271> it looks as
> though Fedora uses a kernel command-line parameter for this, which
> can be reconfigured by altering the bootloader (grub) configuration.

The initramfs-tools maintainers will correct me if I'm wrong but AFAIK,
for that to work the set of keymap(s) to choose from needs to be copied
to the initramfs image.  At init-top stage we can't rely on any device
holding data from the main the system (/boot, /, /etc, etc.) to be even
present, let alone unlocked or mounted.

-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180817/c4597cad/attachment-0005.sig>


More information about the Pkg-systemd-maintainers mailing list