summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-05-29 00:24:53 +0000
committerJeremy Katz <katzj@redhat.com>2002-05-29 00:24:53 +0000
commit75c835e6750a63ce59f8422ca948b9b8051cd064 (patch)
tree36e79104c55e20e376b649e6aeda4c39d87c8958 /anaconda
parente20588a97889f462c0ceefdf05bca001ac017b3e (diff)
downloadanaconda-75c835e6750a63ce59f8422ca948b9b8051cd064.tar.gz
anaconda-75c835e6750a63ce59f8422ca948b9b8051cd064.tar.xz
anaconda-75c835e6750a63ce59f8422ca948b9b8051cd064.zip
more keyboard related changes. the xconfig object now has a keyboard object
instead of just trying to be updated everytime we change the keyboard object. needs a newer rhpl (0.7 or better)
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda19
1 files changed, 14 insertions, 5 deletions
diff --git a/anaconda b/anaconda
index 9b4a76d4f..8198a0be7 100755
--- a/anaconda
+++ b/anaconda
@@ -155,6 +155,7 @@ keymap = None
kbdtpye = None
progmode = None
customClass = None
+kbd = None
#
# parse off command line arguments
@@ -284,6 +285,7 @@ import floppy
import rhpl.videocard as videocard
import rhpl.monitor as monitor
import rhpl.mouse as mouse
+import rhpl.keyboard as keyboard
# handle traceonly and exit
if traceOnly:
@@ -408,6 +410,10 @@ sys.stdout.write( _("Probing for monitor type: "))
monitorhw = monitor.MonitorInfo(fbDevice=fbdev, skipDDCProbe = (skipddc or flags.test))
sys.stdout.write(monitorhw.shortDescription()+'\n')
+kbd = keyboard.Keyboard()
+if keymap:
+ kbd.set(keymap)
+
# only probe if we're installing a real box or
# we're running in a virtual console and need to startup X server
if not os.environ.has_key('DISPLAY') or flags.setupFilesystems:
@@ -464,13 +470,13 @@ if display_mode == 'g':
xcfg = xserver.start_existing_X ()
else:
xcfg = xf86config.XF86Config(videohw.primaryCard(),
- monitorhw, mousehw, runres)
+ monitorhw, mousehw, kbd, runres)
testxcfg = xserver.startX(runres, nofbmode, videohw, monitorhw,
- mousehw)
+ mousehw, kbd)
except RuntimeError:
print " X startup failed, falling back to text mode"
xcfg = xf86config.XF86Config(videohw.primaryCard(),
- monitorhw, mousehw, runres)
+ monitorhw, mousehw, kbd, runres)
display_mode = 't'
time.sleep(2)
else:
@@ -479,7 +485,7 @@ if display_mode == 'g':
card = videocard.VideoCard()
else:
card = videohw.primaryCard()
- xcfg = xf86config.XF86Config(card, monitorhw, mousehw, runres)
+ xcfg = xf86config.XF86Config(card, monitorhw, mousehw, kbd, runres)
else:
# text mode
import xf86config
@@ -490,7 +496,7 @@ else:
card = videocard.VideoCard()
else:
card = videohw.primaryCard()
- xcfg = xf86config.XF86Config(card, monitorhw, mousehw, runres)
+ xcfg = xf86config.XF86Config(card, monitorhw, mousehw, kbd, runres)
@@ -627,6 +633,9 @@ if monitorhw:
if xcfg:
id.setXconfig(xcfg)
+
+if kbd:
+ id.setKeyboard(kbd)
instClass.setInstallData(id)