Bug 470869

Summary: LANG=de_DE.UTF-8 sets language but not keyboard on Live CD
Product: [Fedora] Fedora Reporter: probono <klik.atekon.de>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: davidz, dcantrell, hdegoede, jmccann, katzj, mclasen, notting, pjones, rstrode, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-12 16:40:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description probono 2008-11-10 18:06:37 UTC
Description of problem:
I need to set both language and keyboard to German on the Live CD by specifying boot options. However, it appears that it is not possible to set the keyboard this way.

Version-Release number of selected component (if applicable):
Fedora 10 Preview Live CD

How reproducible:
boot the live CD with LANG=de_DE.UTF-8

Actual results:
Language is German, keyboard is English

Expected results:
Language is German, keyboard is German

Additional info:
Ubuntu uses two separate boot arguments so that language and keyboard can be set independently of each other.

Comment 1 Bill Nottingham 2008-11-10 18:24:35 UTC
Keyboard can't be assumed from language.

Comment 2 Matthias Clasen 2008-11-11 18:44:38 UTC
It would probably be possible to extend the thing that currently parses LANG= from the kernel cmdline and make it parse KEYBOARD=... too

Unfortunately, I failed to locate the code that does that...

Comment 3 Matthias Clasen 2008-11-11 18:46:36 UTC
gdm does look at /etc/sysconfig/keyboard 
to determine the default layout.

Comment 4 probono 2008-11-11 19:15:35 UTC
/sbin/real-init on the initrd reads the language from the boot arguments and writes it to /sysroot/etc/sysconfig/i18n, so probably this would be the right place to do something similar for the keyboard as well.

Thanks for your consideration.

Comment 5 Jeremy Katz 2008-11-12 16:40:02 UTC
Added support for booting with 'live_keytable=us' (or similar) which will set KEYTABLE=us in /etc/sysconfig/keyboard accordingly

Comment 6 probono 2008-11-12 16:46:48 UTC
Perfect, thanks!

Comment 7 Jesse Keating 2008-11-12 18:58:53 UTC
(In reply to comment #5)
> Added support for booting with 'live_keytable=us' (or similar) which will set
> KEYTABLE=us in /etc/sysconfig/keyboard accordingly

Added where, and is it tagged for f10?

Comment 8 probono 2008-11-25 23:26:17 UTC
I have tried to add "live_keytable=de" to a Fedora 10 Live USB system and it works very well, I do get a German keyboard. 

Thank you for implementing this.

(There is a minor cosmetic glitch: In the GDM login window, it shows "USA" at the bottom of the screen as the keyboard setting where I'd expect it to show "German" because it is in fact set to German. Hopefully that GDM login window will go away altogether on the Live CD.)

Comment 9 probono 2010-02-14 10:05:44 UTC
Looks like this doesn't work any more in Fedora 12?
Please let me know how to set keyboard and language to German in Fedora 12.