Discussion:
[Unattended] Unattended 4.9 - Linuxboot - Keyboard
Nicolas BOURGES
2010-07-08 08:53:41 UTC
Permalink
Hi,

I have a problem with the keyboard map in the pxe boot (4.9).

When I use "kdb=fr" to set keyboard in French, it doesn't work. I get a
"qwerty" configuration keyboard.

Have you any idea to solve this problem ?

Best Regards.
--
Nicolas Bourges
Jason Oster
2010-07-08 14:42:01 UTC
Permalink
Post by Nicolas BOURGES
Hi,
I have a problem with the keyboard map in the pxe boot (4.9).
When I use "kdb=fr" to set keyboard in French, it doesn't work. I get a
"qwerty" configuration keyboard.
Have you any idea to solve this problem ?
Best Regards.
--
Regis Gras
2010-07-15 11:41:18 UTC
Permalink
Post by Nicolas BOURGES
Hi,
I have a problem with the keyboard map in the pxe boot (4.9).
When I use "kdb=fr" to set keyboard in French, it doesn't work. I get
a "qwerty" configuration keyboard.
Have you any idea to solve this problem ?
The configuration of the keyboard is done by the commande "loadkeys" in
.../etc/master

loadkeys needs some map to work
loadkeys searchs key maps in /share/keymaps/i386/azerty (for the
french keyboard)

The /share directory is mapped with Z
.../unattended-4.9/install/linuxaux/share/keymaps/i386/azerty ...

When the command loadkeys is started, Z is not mapped, and
/share/keymaps/i386/azerty
is empty ..... so loadkeys fails

To solve this problem, I modified .../etc/master to restart the loadkeys
command, just before the call for install.pl

# MODIF 15 Juillet 2010
# Configure the keyboard, if requested.
kbd=$(get_cmdline_param kbd)
[ -n "$kbd" ] \
&& loadkeys ${kbd#*=}
# A little sleep to see the result of the loadkeys command
sleep 5

perl -I/z/lib /z/dosbin/install.pl \
|| die "install.pl exited non-zero"
# End MODIF

But .... this modification should be in the initrd wich is loaded.
So, you have to uncompress initrd, modify .../etc/master and rebuild the
initrd

Régis

Loading...