Incorrect keyboard layout in GRUB stage1 to enter the LUKS passphrase

OpenSubmitted by Damien Cassou.
Details
3 participants
  • Damien Cassou
  • Ludovic Courtès
  • Tobias Geerinckx-Rice
Owner
unassigned
Severity
important
Merged with
D
D
Damien Cassou wrote on 26 Jan 12:41 +0100
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 touse the colemak keyboard layout. After the system rebooted, typing thepassphrase in colemak didn't work and I got dropped into rescuemode. The rescue mode is in qwerty, not colemak.
Best,
-- Damien Cassou
"Success is the ability to go from one failure to another withoutlosing enthusiasm." --Winston Churchill
T
T
Tobias Geerinckx-Rice wrote on 26 Jan 13:24 +0100
(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+u0AlEeO9y5k0W2Imw8BjFSTwFAl4thOsACgkQ2Imw8BjFSTzh8BAAnVej93r9IzPj1koAZVhxAIME4JvlukGTHNOPzIzSIWasaGuwMXdqGrdwG6RmrhkJu9/muOrKaK3oOLkEHOlf1pd9Ktfx02ktrdIrFIlKH9O4cYg3N1vmFgfTQ3oWcMxp0pGvSMzpeLy1yqGLFB9I21bQbHkHro2niVUsAwLTdM+e49XX4cZVV5SGmZdJDbfdcnN26oNZQyL0uxfZulrEy7WQPKeKDJXcOkRmokgSJns06caDRxOnGzMIFHMemBt8jSRcICv4rNJlGWzoZp0If9ceACcbA2SBTnd/aQoU28pOU5PFA9Q4EGcgMoIVPAFPyvKCsBqwqszHrJ2kkxvCb6S9PqK+vzUMsOZgtiW8Slx8hQ5fEsG9cE5NqqMIzUE5+jeZu6X+bqoS/Rm0HzueoUytbPDFovTSqqxl2TT/vtrcIgmVbDvOPi0uBPgK1N2hVzt5/70O9ZpZLwXcWj1jQjNpEPDF8tflEuLjeFRWJDwFxbMTpqhQU47Ni+we63w0saT7TNqiAP0Ij5CBlv/iX5Ckbhcv1TtJpMUjiyOMs/EG9JHQnTaQe7EyZUW+aAHkTOGZCQ4AFqV0dkdoV5jj0KKlq/TwuzdCnRxcHPLBgjToIOkcR0fvB35mDvdKkdofrcXnupTNMbzLjgT6bAkEuRwV5m411qVH13AB/xJry+s==SE2T-----END PGP SIGNATURE-----
L
L
Ludovic Courtès wrote on 26 Jan 17:10 +0100
control message for bug #39288
(address . control@debbugs.gnu.org)
87imky6vw7.fsf@gnu.org
severity 39288 importantquit
L
L
Ludovic Courtès wrote on 27 Jan 22:39 +0100
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 havingan encrypted root say that GRUB (stage1) would indeed ignore the chosenkeyboard layout. (I believe GRUB stage2, where the menu and commandline editing features are present, works fine, but that’s after thepassphrase has been entered.)
A quick search yields:
https://superuser.com/questions/974833/change-the-keyboard-layout-of-grub-in-stage-1
… which suggests using ‘grub-mkstandalone’ (which is undocumented butlooks like a tiny superset of ‘grub-install’) and explicitly adding thekeyboard 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 15:01 +0100
control message for bug #39288
(address . control@debbugs.gnu.org)
87d0a8niow.fsf@gnu.org
merge 39288 39632quit
L
L
Ludovic Courtès wrote on 3 Apr 17:20 +0200
(address . control@debbugs.gnu.org)
87pncok34m.fsf@gnu.org
retitle 39288 Incorrect keyboard layout in GRUB stage1 to enter the LUKS passphrasequit
?