Page MenuHomeSolus

LVM Encryption keyboard layout
Open, NormalPublic

Description

Hi,

when I installed Solus I choose to encrypt my HDD. Also I change the system language to German. After a reboot I am ask for the encryption password, but then the keyboard layout was English.
Maybe this is a bug?

Thanks

Malte

Event Timeline

siru added a subscriber: siru.Nov 5 2016, 10:02 AM

+1 here.
Keyboard layout in french during install but when the passphrase is asked the keyboard layout is in English.

Don't know if it's doable to load local keyboard before passphrase is asked. It seems encryption is on a pretty early phase.

But maybe this should be added as a warning in the installer.

workaround:
edit /etc/default/grub
just before rd.luks.... add vconsole.keymap="fr"
then
sudo update-grub
after reboot should be fine.

I did some other stuff to before this that didint work, but i've not reverted and might be influencing my end result so this fix needs to be tested on a fresh install.

It works ! Tried this morning.
Edited grub at boot time and add vconsole.keymap.

My wierd special characters password worked like a charm.
Maybe this could be set as an improvement in the installer ?

DataDrake triaged this task as Normal priority.Dec 25 2016, 1:29 AM

Note: The clr-boot-manager update broke keyboard again. You need to re add your vconsole.keymap

I should point out that the console cmdline management before in Solus was highly flaky, the "correct" method of adding a cmdline now
involves editing /etc/kernel/cmdline, and just running sudo clr-boot-manager update, which will update all of your Solus boot entries to include the new
cmdline. There is no longer a need to use /etc/default/grub or indeed make any distinction when using UEFI or BIOS. This fits in with the stateless aims of
Solus by ensuring there is no config clobbering

Trillon008 added a comment.EditedMar 27 2017, 1:57 PM

Yep, should have mentionned I used /etc/kernel/cmdline instead of /etc/default/grub.
Need to reboot to confirm this all work well.

nils added a subscriber: nils.Mar 25 2018, 7:43 AM
jd added a subscriber: jd.EditedApr 2 2018, 9:14 PM

Updated instructions at https://solus-project.com/articles/troubleshooting/boot-management/en/ might be confusing as there is no /etc/kernel/cmdline file yet one may stumble upon a /etc/kernel/cmdline.d/10_resume.conf (depends whether one's rebooted etc.)

Therefore I chose to create /etc/kernel/cmdline.d/50_keymap.conf with vconsole.keymap=fr (as I am using a French layout; check available & relevant keymaps with localectl list-keymaps) and it Just Works. Thank you @ikey.

Note: check https://unix.stackexchange.com/questions/4029/what-does-the-d-stand-for-in-directory-names if unsure about the /some/path/whatever.d/ stuff, and https://unix.stackexchange.com/questions/134520/what-is-the-number-prefix-in-config-files-from-d-directory if unsure about the 50_ prefix.

Any updates here?

so-lo added a subscriber: so-lo.Dec 24 2018, 7:20 PM

This seems to still be an issue on the 3.9999 release. I configured disk encryption and a German keyboard layout in the installer. After finishing the install and rebooting I got the US layout at the password prompt. Manually modifying /etc/kernel/cmdline.d/50_keymap.conf did the trick. Is this a bug with the installer?

Yes, it's a bug in the installer. It won't be addressed until we rewrite the installer.

so-lo added a comment.Dec 24 2018, 7:46 PM

Got it. I opened https://github.com/getsolus/help-center-docs/pull/186 to add some hints to the help center docs in the meantime.

Is there active work ongoing on the installer rewrite already? I'm wondering if it would be worth to take a look at the current code to see if this could be fixed before the rewrite lands. It's a bit of a bummer to go through the install and then potentially end up being unable to type in your disk encryption password afterwards. :(

so-lo added a comment.Dec 25 2018, 9:33 AM

Looking at the current installer sources (https://github.com/getsolus/os-installer) it seems that creating /etc/kernel/cmdline.d/50_keymap.conf would be rather trivial since there is already code to create the resume file here: https://github.com/getsolus/os-installer/blob/master/os_installer2/postinstall.py#L708

However, one thing I'm not sure about is how to convert the X11 keymap selected in the installer to the appropriate console keymap to be set in /etc/kernel/cmdline.d/50_keymap.conf. Could we just try to perform a name or maybe prefix match or is there a better way to make the connection?

Kinnal claimed this task.Dec 17 2019, 1:02 PM