summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorNiels de Vos <niels.devos@wincor-nixdorf.com>2008-07-17 16:46:26 +0200
committerJeremy Katz <katzj@redhat.com>2008-07-17 12:03:02 -0400
commit4eaaad32030fd04e8bd9e6d9dc2dc37cbd9de719 (patch)
tree369417f7a7a7ce95d17d2e275d03f968900cac42 /isys
parent69c1bd131ba4c88e66e692eafae683871492671c (diff)
downloadanaconda-4eaaad32030fd04e8bd9e6d9dc2dc37cbd9de719.tar.gz
anaconda-4eaaad32030fd04e8bd9e6d9dc2dc37cbd9de719.tar.xz
anaconda-4eaaad32030fd04e8bd9e6d9dc2dc37cbd9de719.zip
Fix loadkeys on serial console
when running anaconda (kickstart) over a serial linedisplay (two line output device) loadkeys does not function. The output of anaconda is writing to /dev/console, which is achieved by kernel parameter "console=ttyS1". If user input is needed (ks.cfg-%pre) the layout of the keyboard does not match the settings in ks.cfg. Obviously the loadkeys of anaconda does not function correctly if the output is a serial port. This patch fixes this by not using /dev/console, but /dev/tty0 (the master-tty).
Diffstat (limited to 'isys')
-rw-r--r--isys/lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/lang.c b/isys/lang.c
index e16bf3ace..715f5e160 100644
--- a/isys/lang.c
+++ b/isys/lang.c
@@ -129,7 +129,7 @@ int loadKeymap(gzFile stream) {
if (gunzip_read(stream, keymaps, sizeof(keymaps)) != sizeof(keymaps))
return -EINVAL;
- console = open("/dev/console", O_RDWR);
+ console = open("/dev/tty0", O_RDWR);
if (console < 0)
return -EACCES;