help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help for keymap


From: Andrei Borzenkov
Subject: Re: Need help for keymap
Date: Mon, 12 Oct 2015 22:37:39 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

12.10.2015 18:24, Bertrand пишет:
Hello,

I installed a laptop on which I have encrypted all partitions (see 
https://blog.wycd.net/gentoo-setup-fde-lvm-genkernel/ )

When Grub launches :
- He asks me my key to unlock the encrypted disk
- if password is ok, I can choose the kernel to boot

Unfortunately, when I type the password, the keyboard is Qwerty . I would like 
it to be in be- latin1 .
I tried to create a " /etc/grub.d/50_custom " file that contains :
#!/bin/sh
insmod keylayouts
keymap /boot/grub-layouts/be-latin1.gkb

I try to generate the configuration Grub :
# grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/kernel-genkernel-x86_64-4.0.5-gentoo
Found initrd image: /boot/initramfs-genkernel-x86_64-4.0.5-gentoo
insmod: ERROR: could not load module keylayouts: No such file or directory
/etc/grub.d/50_keyboard: line 2: keymap: command not found


Files in /etc/grub.d are executed by grub-mkconfig and their output is put into grub.cfg. So you need to do something like

echo "insmod keylayouts"
...

Or you can add those lines to /etc/grub.d/40_custom (read comments in the beginning of this file); and if you have sufficiently new grub or your distro supports it, add those commands to /boot/grub/custom.cfg - this file is sourced at boot time.

Note that only at_keyboard driver supports custom layouts, so you will need to switch to it:

terminal_input at_keyboard

You can also set GRUB_TERMINAL_INPUT in /etc/default/grub.

The file '/boot/grub-layouts/be-latin1.gkb' exists :
# ls -l /boot/grub-layouts/be-latin1.gkb
-rw-r--r-- 1 root root 2572 Oct 6 08:43 /boot/grub-layouts/be-latin1.gkb

The module keylayouts ' also exists:
# locate keylayouts
/boot/grub/i386-pc/keylayouts.mod
/usr/lib64/grub/i386-pc/keylayouts.mod
/usr/lib64/grub/i386-pc/keylayouts.module

Does anyone know what the problem is ?

I thank you.

Kind regards,
Bertrand



_______________________________________________
Help-grub mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-grub





reply via email to

[Prev in Thread] Current Thread [Next in Thread]