You are not logged in.
Pages: 1
On boot GRUB asks encryption passphrase. I can only use simple passphrases because GRUB uses en_US keymap. How can I make GRUB use other keyboard language?
Offline
Offline
This procedure is too complicated and long. Isn't there a simpler approach? There are a lot of people not using en_US keyboards so why can't the GRUB project just simplify it?
Last edited by equalizer876 (2021-01-13 21:16:14)
Offline
What is the output of
# cat /boot/grub/grub.cfg | grep lang
?
Edit:
Also, did you include the keymap hook before the encrypt one?
Last edited by momokrono (2021-01-14 15:51:20)
Offline
GRUB asks encryption passphrase
https://wiki.archlinux.org/index.php/GR … pted_/boot
The crucial bit is actually whether /boot is encrypted (or really anything about the actually used encryption approach)
If it's not, changing the layout would frankly be trivially easy and should™ work anyway unless actively broken.
If it is, one needs to create a custom grub image as described in the posted link - which however seems to be too much effort for the OP.
Offline
What is the output of
# cat /boot/grub/grub.cfg | grep lang
?
Edit:
Also, did you include the keymap hook before the encrypt one?
# cat /boot/grub/grub.cfg | grep lang
set lang=en_US
keymap hook is set before encrypt in mkinitcpio.conf . Is it even possible to manually change the "set lang=..." in /boot/grub/grub.cfg ?
/boot is on the same filesystem as / thus encrypted.
Last edited by equalizer876 (2021-01-14 19:21:51)
Offline
You can add stuff to /etc/grub.d/41_custom to have it incorporated by grub-mkconfig or just edit the grub.cfg by hand.
However, you need to decrypt /boot to get access to the grub modules and configuration and therefore need to provide a key and that means yo need to configure the core image if you want to provide that key w/ a custom keyboard layout.
You can try whether grub-install simply picks it up from there, /etc/grub.d/41_custom
…
insmod keylayouts
keymap /boot/grub/mylayout.gkb
…
/etc/default/grub
…
GRUB_TERMINAL_INPUT="at_keyboard"
…
but you will somehow™ have to alter the image to get a different layout at this stage.
Offline
Pages: 1