diff options
author | Chris Lumens <clumens@redhat.com> | 2007-02-01 22:55:38 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-02-01 22:55:38 +0000 |
commit | 211d91e1020223db3f99dc1fae7b82e4dac8fc1c (patch) | |
tree | fe737e2b1f1e1d62370fd496f45b265557182fbc /xsetup.py | |
parent | c54bdf8466dccfdf7b1d156e3388a38070e39430 (diff) | |
download | anaconda-211d91e1020223db3f99dc1fae7b82e4dac8fc1c.tar.gz anaconda-211d91e1020223db3f99dc1fae7b82e4dac8fc1c.tar.xz anaconda-211d91e1020223db3f99dc1fae7b82e4dac8fc1c.zip |
If a resolution was specified in a kickstart file, preserve that in the
installed system's xorg.conf (#158089).
Diffstat (limited to 'xsetup.py')
-rw-r--r-- | xsetup.py | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -21,15 +21,23 @@ import rhpl from rhpl.translate import _ class XSetup: - def __init__(self, xserver): + def __init__(self, xserver, anaconda): self.skipx = 0 - self.imposed_sane_default = 0 self.xserver = xserver + self.anaconda = anaconda def write(self, fn, mouse, keyboard): self.xserver.keyboard = keyboard self.xserver.mousehw = mouse self.xserver.generateConfig() + + res = self.anaconda.id.ksdata.xconfig.resolution + + if self.anaconda.isKickstart and res: + import xf86config + screen = xf86config.getPrimaryScreen(self.xserver.config) + screen.display[0].modes.insert(xf86config.XF86Mode(res)) + self.xserver.writeConfig(filename=fn+"/xorg.conf") def writeKS(self, f, desktop, ksconfig): |