Red Hat Bugzilla – Bug 7977
Load keymap fails
Last modified: 2014-03-16 22:11:49 EDT
I want to use a UK keyboard mapping but the section of the rc.sysinit
script copied below does not work.
This is because it is run before the /usr partition has been mounted.
Therefore the test [ ... -d "/usr/lib/kbd/keymaps" ] always fails.
The solution is simply to move this whole section to later in the
script, after all partitions have been mounted read-write.
# Load keymap
if [ -f /etc/sysconfig/console/default.kmap ]; then
if [ -n "$KEYTABLE" -a -d "/usr/lib/kbd/keymaps" ]; then
if [ -n "$KEYMAP" ]; then
# Since this takes in/output from stdin/out, we can't use initlog
echo -n "Loading default keymap"
loadkeys $KEYMAP < /dev/tty0 > /dev/tty0 2>/dev/null && \
success "Loading default keymap" || failure "Loading default keymap"
This is fixed in 6.1; it will only load the keymap if it's
in /etc/sysconfig/console, and it will load it later in
the keytable init script.