Bug 116852 - keymap setting don't work after upgrade from RHL 7.3
Summary: keymap setting don't work after upgrade from RHL 7.3
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts   
(Show other bugs)
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-25 19:14 UTC by Peter Bieringer
Modified: 2014-03-17 02:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-03-17 00:03:44 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Peter Bieringer 2004-02-25 19:14:17 UTC
Description of problem:
After upgrading from RHL 7.3 I cannot change the keytable (which is
not so well in front of a German keyboard) permanently.

redhat-config-keyboard remember my settings but on next reboot this is
already gone again.


Version-Release number of selected component (if applicable):
initscripts-7.42.2-1

How reproducible:
Always

Steps to Reproduce:
1. Install RHL 7.3 with all updates
2. Configure e.g. a German keyboard map
3. Update to Fedora Core 1
    

Actual Results:  Not working

Expected Results:  Working

Additional info:

I've tracked down the problem, see reason now:

On my RHL 7.3 system, a file called
/etc/sysconfig/console/default.kmap. During the upgrade, it wasn't
neither removed nor I got a warning. redhat-config-keyboard ignores
this file, but rc.sysinit not.

And therefore, the defined keytable wasn't loaded. Simply renamed the
file, and all works fine.

Related code:
if [ "$CONSOLETYPE" = "vt" -a -x /bin/loadkeys ]; then
 KEYTABLE=
 KEYMAP=
 if [ -f /etc/sysconfig/console/default.kmap ]; then <-!!!!
  KEYMAP=/etc/sysconfig/console/default.kmap  <-!!!!!!!!
 else
  if [ -f /etc/sysconfig/keyboard ]; then
    . /etc/sysconfig/keyboard
  fi
  if [ -n "$KEYTABLE" -a -d "/lib/kbd/keymaps" ]; then
     KEYMAP="$KEYTABLE.map"
  fi
 fi


Note that on a fresh FC1 install, "default.kmap" doesn't exist at all.

Comment 1 Bill Nottingham 2004-03-17 00:03:44 UTC
Fixed in rhpl-0.135-1; that will get removed when you write out a new
config with system-config-keyboard (or whatever else uses it.)


Note You need to log in before you can comment on or make changes to this bug.