summaryrefslogtreecommitdiffstats
path: root/xsetup.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-12-12 16:03:48 +0000
committerChris Lumens <clumens@redhat.com>2005-12-12 16:03:48 +0000
commitabfb305c11dc03a46f43562496c587d860b269b6 (patch)
treedb348db25d1b3c9c03fca55bcddc7d764c5ed3f6 /xsetup.py
parentc97e772dc9a0d47aa81067227154a883bf1ca79a (diff)
downloadanaconda-abfb305c11dc03a46f43562496c587d860b269b6.tar.gz
anaconda-abfb305c11dc03a46f43562496c587d860b269b6.tar.xz
anaconda-abfb305c11dc03a46f43562496c587d860b269b6.zip
Write out a monitor keyword to the generated kickstart file.
Diffstat (limited to 'xsetup.py')
-rw-r--r--xsetup.py20
1 files changed, 14 insertions, 6 deletions
diff --git a/xsetup.py b/xsetup.py
index 15f1e26bd..63caf599f 100644
--- a/xsetup.py
+++ b/xsetup.py
@@ -88,17 +88,28 @@ class XSetup:
f.write(" " + arg)
f.write("\n")
- def getArgList(self, res, depth):
+ f.write("monitor")
+ for arg in self.getMonitorArgList():
+ f.write(" " + arg)
+ f.write("\n")
+
+ def getMonitorArgList(self):
args = []
monitor = self.xhwstate.monitor
+
+ args = args + [ "--hsync", monitor.getMonitorHorizSync() ]
+ args = args + [ "--vsync", monitor.getMonitorVertSync() ]
+
+ return args
+
+ def getArgList(self, res, depth):
+ args = []
vc = self.xhwstate.videocard
args = args + [ "--driver", '"' + vc.primaryCard().getDriver() + '"' ]
vram = vc.primaryCard().getVideoRam()
if vram is not None:
args = args + [ "--videoram", vram]
- args = args + [ "--hsync", monitor.getMonitorHorizSync() ]
- args = args + [ "--vsync", monitor.getMonitorVertSync() ]
# XXX this isn't really quite right, but it works for the way
# things are now
@@ -106,6 +117,3 @@ class XSetup:
args = args + [ "--depth", str(depth) ]
return args
-
-
-