Incorrect keyboard layout in GRUB stage1 to enter the LUKS passphrase

  • Open
  • quality assurance status badge
Details
3 participants
  • Damien Cassou
  • Ludovic Courtès
  • Tobias Geerinckx-Rice
Owner
unassigned
Submitted by
Damien Cassou
Severity
important
Merged with

Debbugs page

D
D
Damien Cassou wrote on 26 Jan 2020 03:41
Wrong keyboard layout to decrypt hard drive
(address . bug-guix@gnu.org)
877e1e5trx.fsf@cassou.me
Hi,

during graphical installation I chose to encrypt my hard drive and to
use the colemak keyboard layout. After the system rebooted, typing the
passphrase in colemak didn't work and I got dropped into rescue
mode. The rescue mode is in qwerty, not colemak.

Best,

--
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
T
T
Tobias Geerinckx-Rice wrote on 26 Jan 2020 04:24
(address . 39288@debbugs.gnu.org)
877e1epfro.fsf@nckx
Damien,

Damien Cassou 写道:
Toggle quote (7 lines)
> during graphical installation I chose to encrypt my hard drive
> and to
> use the colemak keyboard layout. After the system rebooted,
> typing the
> passphrase in colemak didn't work and I got dropped into rescue
> mode. The rescue mode is in qwerty, not colemak.

Could you check whether your system configuration's
bootloader-configuration actually contains a keyboard-layout
field?

(bootloader (bootloader-configuration
(bootloader grub-efi-bootloader)
(target "/boot/efi")
--> (keyboard-layout keyboard-layout)))

The last time I tried adding this myself (granted: that was a year
ago) it broke my GRUB, so today I still type my passphrase once in
Qwerty and once in Dvorak. Much secure!

Kind regards,

T G-R
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl4thOsACgkQ2Imw8BjF
STzh8BAAnVej93r9IzPj1koAZVhxAIME4JvlukGTHNOPzIzSIWasaGuwMXdqGrdw
G6RmrhkJu9/muOrKaK3oOLkEHOlf1pd9Ktfx02ktrdIrFIlKH9O4cYg3N1vmFgfT
Q3oWcMxp0pGvSMzpeLy1yqGLFB9I21bQbHkHro2niVUsAwLTdM+e49XX4cZVV5SG
mZdJDbfdcnN26oNZQyL0uxfZulrEy7WQPKeKDJXcOkRmokgSJns06caDRxOnGzMI
FHMemBt8jSRcICv4rNJlGWzoZp0If9ceACcbA2SBTnd/aQoU28pOU5PFA9Q4EGcg
MoIVPAFPyvKCsBqwqszHrJ2kkxvCb6S9PqK+vzUMsOZgtiW8Slx8hQ5fEsG9cE5N
qqMIzUE5+jeZu6X+bqoS/Rm0HzueoUytbPDFovTSqqxl2TT/vtrcIgmVbDvOPi0u
BPgK1N2hVzt5/70O9ZpZLwXcWj1jQjNpEPDF8tflEuLjeFRWJDwFxbMTpqhQU47N
i+we63w0saT7TNqiAP0Ij5CBlv/iX5Ckbhcv1TtJpMUjiyOMs/EG9JHQnTaQe7Ey
ZUW+aAHkTOGZCQ4AFqV0dkdoV5jj0KKlq/TwuzdCnRxcHPLBgjToIOkcR0fvB35m
DvdKkdofrcXnupTNMbzLjgT6bAkEuRwV5m411qVH13AB/xJry+s=
=SE2T
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 26 Jan 2020 08:10
control message for bug #39288
(address . control@debbugs.gnu.org)
87imky6vw7.fsf@gnu.org
severity 39288 important
quit
L
L
Ludovic Courtès wrote on 27 Jan 2020 13:39
Re: bug#39288: Wrong keyboard layout to decrypt hard drive
(name . Tobias Geerinckx-Rice)(address . me@tobias.gr)(address . 39288@debbugs.gnu.org)
87o8uofujc.fsf@gnu.org
Hi,

Tobias Geerinckx-Rice <me@tobias.gr> skribis:

Toggle quote (8 lines)
> Could you check whether your system configuration's
> bootloader-configuration actually contains a keyboard-layout field?
>
> (bootloader (bootloader-configuration
> (bootloader grub-efi-bootloader)
> (target "/boot/efi")
> --> (keyboard-layout keyboard-layout)))

I've heard people using the French keyboard layout like this and having
an encrypted root say that GRUB (stage1) would indeed ignore the chosen
keyboard layout. (I believe GRUB stage2, where the menu and command
line editing features are present, works fine, but that’s after the
passphrase has been entered.)

A quick search yields:


… which suggests using ‘grub-mkstandalone’ (which is undocumented but
looks like a tiny superset of ‘grub-install’) and explicitly adding the
keyboard layout file to the on the command line. Should we do that?

Problem is, ‘install-grub-efi’ isn’t passed the configuration.

Thanks,
Ludo’.
L
L
Ludovic Courtès wrote on 21 Feb 2020 06:01
control message for bug #39288
(address . control@debbugs.gnu.org)
87d0a8niow.fsf@gnu.org
merge 39288 39632
quit
L
L
Ludovic Courtès wrote on 3 Apr 2020 08:20
(address . control@debbugs.gnu.org)
87pncok34m.fsf@gnu.org
retitle 39288 Incorrect keyboard layout in GRUB stage1 to enter the LUKS passphrase
quit
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 39288@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 39288
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch