Re: [pkg-cryptsetup-devel] Bug#874364: Keyboard layout set in GNOME or with localectl does not apply to initramfs LUKS prompt immediately
- To: Simon McVittie <smcv@debian.org>
- Cc: Iiro Laiho <news@iirolaiho.net>, 874364@bugs.debian.org, iiro@laiho.me, gnome-control-center@packages.debian.org, systemd@packages.debian.org, cryptsetup@packages.debian.org, initramfs-tools@packages.debian.org
- Subject: Re: [pkg-cryptsetup-devel] Bug#874364: Keyboard layout set in GNOME or with localectl does not apply to initramfs LUKS prompt immediately
- From: Guilhem Moulin <guilhem@debian.org>
- Date: Fri, 17 Aug 2018 15:44:49 +0200
- Message-id: <[🔎] 20180817134449.GA31645@localhost.localdomain>
- Mail-followup-to: Guilhem Moulin <guilhem@debian.org>, Simon McVittie <smcv@debian.org>, Iiro Laiho <news@iirolaiho.net>, 874364@bugs.debian.org, iiro@laiho.me, gnome-control-center@packages.debian.org, systemd@packages.debian.org, cryptsetup@packages.debian.org, initramfs-tools@packages.debian.org
- In-reply-to: <[🔎] 20180817094455.GA17019@espresso.pseudorandom.co.uk>
- References: <736001947.21041.1520191611812@office.mailbox.org> <150461681868.2703.13936692229185868493.reportbug@cajander.zyxel.laiho.internal> <[🔎] 20180817094455.GA17019@espresso.pseudorandom.co.uk>
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: