Trying to change grub2 key layout on a Samsung laptop and failing badly.
Created /etc/grub.d/50_keyboard
file containing
#!/bin/sh
exec tail -n +3 $0
# Clavier fr
insmod keylayouts
keymap /boot/grub/layouts/fr.gkb
Edited /etc/default/grub
file to add
GRUB_TERMINAL_INPUT="at_keyboard"
Used command ckbcomp fr |sudo grub-mklayout -o /boot/grub/layouts/fr.gkb
to create the keylayout file
Used command sudo update-grub
to ensure my changes were written to /boot
.
Your
/etc/grub.d/50_keyboard
is incorrect.The "exec" line is incorrect for your file, but rather than change it or renaming it to 39_keyboard and fixing the exec line...
/etc/grub.d/50_keyboard
/etc/grub.d/40_custom
Add this to the end of this file:
so that the final file looks like: