summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-04-03 20:25:17 +0000
committerMike Fulbright <msf@redhat.com>2000-04-03 20:25:17 +0000
commit4e668251334f518d2817000c1faef7d3741e873b (patch)
tree6a451b51d147dafeca1f16bb5340568aca70ee77 /installclass.py
parent2baf867495ee7f85ab16ebbba9d2cc3eb78783fe (diff)
downloadanaconda-4e668251334f518d2817000c1faef7d3741e873b.tar.gz
anaconda-4e668251334f518d2817000c1faef7d3741e873b.tar.xz
anaconda-4e668251334f518d2817000c1faef7d3741e873b.zip
(drmike) Fixed --server and --card options for kickstart xconfig directive. Did not work in 6.1 or 6.2 apparently.
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/installclass.py b/installclass.py
index f427dcec0..5698c5b35 100644
--- a/installclass.py
+++ b/installclass.py
@@ -117,7 +117,13 @@ class InstallClass:
self.x.probe()
if not self.x.server:
- self.x.setVidcard (card)
+ if (card != None):
+ self.x.setVidcardByName (card)
+ elif (server != None):
+ self.x.setVidcardByServer (server)
+ else:
+ raise RuntimeError, "Could not probe video card and no fallback specified."
+
if not self.x.monID and monitor:
self.x.setMonitor((monitor, (None, None)))