Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 231083

Summary: 2008.0 x86 livecd: wrong keyboard layout within gdm
Product: Gentoo Release Media Reporter: Toralf Förster <toralf>
Component: All ISOAssignee: Gentoo Release Team <releng>
Status: RESOLVED OBSOLETE    
Severity: normal CC: pacho
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2008-07-07 16:58:39 UTC
However at the command line the choosen "de" layout works fine (ThinkPad T41, x86).


Reproducible: Always
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2008-07-12 16:32:24 UTC
This has been an outstanding issue for the LiveCD since the beginning. The keymap support in genkernel was designed for use on the minimal CD.

There's no real way to extend it for setting the keymap in X without rigging something in livecd-tools's autoconfig or mkxf86config to read the current keymap and then set it in xorg.conf.
Comment 2 Herve Darce 2008-12-28 17:44:20 UTC
There is a bug in /usr/sbin/mkxf86config.sh (livecd 2008). mkxf86config.sh does not properly to initialize the keyboard fr for example (XkbLayout "fr").

Solution: 
----------------------------
mv /usr/sbin/mkxf86config.sh /usr/sbin/mkxf86config.sh.bug;
sed -e 's|\*\"\[\^\"\]\*\"|\*\"\(\^\"\)\*\"|g;' /usr/sbin/mkxf86config.sh.bug > /usr/sbin/mkxf86config.sh
----------------------------

I replace in /usr/sbin/mkxf86config.sh:
----------------------------
-e 's|"XkbLayout" *"[^"]*"|"XkbLayout" "'"${XKEYBOARD}"'"|g;'"${DEADKEYS}"
----------------------------
by
----------------------------
-e 's|"XkbLayout" *"(^")*"|"XkbLayout" "'"${XKEYBOARD}"'"|g;'"${DEADKEYS}"
----------------------------

Herve Darce
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-05-13 19:57:26 UTC
No more livecds, so closing this bug.