From 4eaaad32030fd04e8bd9e6d9dc2dc37cbd9de719 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 17 Jul 2008 16:46:26 +0200 Subject: 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). --- isys/lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isys/lang.c') 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; -- cgit