You are not logged in.

#1 2022-02-10 15:03:12

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 118

Change Grub2 keymap

Hello I have been trying to change the grub keyboard layout.
This is what i have tried so far:

# grub-kbdcomp -o /boot/grub/it.gkb it

Then in /etc/grub.d/40_custom i added the following:

insmod keylayouts
keymap /boot/grub/it.gkb
terminal_input at_keyboard
# grub-mkconfig -o /boot/grub/grub.cfg
insmod: ERROR: could not load module keylayouts: No such file or directory

There is a section in the grub wiki that makes no sense to me regarding the keymaps and luks. It almost makes me think that I need luks to be able to change keyboard layout ...
https://wiki.archlinux.org/title/GRUB/T … early_boot

Last edited by InvisibleRasta (2022-02-10 15:24:51)

Offline

#2 2022-02-10 15:18:00

frostschutz
Member
Registered: 2013-11-15
Posts: 1,637

Re: Change Grub2 keymap

is the module file present at all? if not, your grub install might be botched.

find /boot -name "*layout*"

the early configuration is a different approach, if you don't use encrypted /boot, you don't need it (but you can do it anyway to see if it changes anything). note that these instructions include putting the keylayouts into the list of pre-loaded modules and supplying the layout file itself in a memdisk. (But these are all hoops you have to jump when the real boot partition is not accessible due to encryption or other complications.)

Last edited by frostschutz (2022-02-10 15:18:33)

Offline

#3 2022-02-10 15:24:22

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 118

Re: Change Grub2 keymap

# find /boot -name "*layout*"
/boot/grub/x86_64-efi/keylayouts.mod 

So I am guessing the module is present. But still it is not being loaded

Offline

#4 2022-02-10 15:33:31

frostschutz
Member
Registered: 2013-11-15
Posts: 1,637

Re: Change Grub2 keymap

does it work from grub command prompt?

Offline

#5 2022-02-10 15:34:53

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 118

Re: Change Grub2 keymap

i tried with the grub command line command keymap it. it didnt give any error and it seemed to work but it didnt change the keymaps

Last edited by InvisibleRasta (2022-02-10 16:29:47)

Offline

#6 2022-02-12 02:27:17

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 118

Re: Change Grub2 keymap

anyone can help me figure out how to do it please? do you need any logs ?

Offline

Board footer

Powered by FluxBB