[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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.

Attachment: signature.asc
Description: PGP signature


Reply to: