Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221933 - genkernel generated initrds sets keymap after luks passphrase prompt
Summary: genkernel generated initrds sets keymap after luks passphrase prompt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-13 12:57 UTC by Kristoffer
Modified: 2008-06-26 17:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristoffer 2008-05-13 12:57:57 UTC
When using genkernel to generate an initrd with luks support the resulting initrd will set the keymap specified on the kernel cmdline _afer_ the prompt asking for the luks passphrase. This results in a most confusing situation for users with passphrases containing characters whose keyboard combination on their normal keyboard layout differs from the default english keyboard layout. In essence one need to know the english keyboard layout by heart which is especially troubling for special characters, and what's worse is that some layout's characters are not even present on the english layout. 

Reproducible: Always

Steps to Reproduce:
1. for a system using dm-crypt, generate an initrd with: genkernel --lvm --luks initrd
2. boot the kernel specifying a non-default keyboard layout xx, i.e. add this to the kernel cmdline: keymap=xx dokeymap
3. try to enter a luks passphrase containing many special characters while using a keyboard with layout xx

Actual Results:  
The user specified keyboard layout is not set during the luks prompt, defaulting to the english keyboard layout.

Expected Results:  
If a keyboard layout is specified on the kernel cmdline it should be set before asking for the luks passphrase. Ideally this should be done before any other user keyboard input is required too (not sure if there are any other such situations though).

This is with genkernel-3.4.10_pre10 with the new keymap code as of 25 Apr 2008 (see the genkernel changelog).
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2008-05-13 14:26:00 UTC
This is fixed in SVN
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2008-06-26 17:49:48 UTC
OK.  This is resolved in genkernel 3.4.10, which is now in the tree and stable.