summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-03-13 11:44:47 -0400
committerChris Lumens <clumens@redhat.com>2008-03-13 11:44:47 -0400
commit362093a0b6787002cdb0d93d5df5488743e6243e (patch)
tree3c245761cf20563161dea64b6a3d1579e69949f2 /installclass.py
parent5c94a222685a983489602c6fb8a4d7b0681aeebf (diff)
downloadanaconda-362093a0b6787002cdb0d93d5df5488743e6243e.tar.gz
anaconda-362093a0b6787002cdb0d93d5df5488743e6243e.tar.xz
anaconda-362093a0b6787002cdb0d93d5df5488743e6243e.zip
The xconfig command with no X running doesn't make sense.
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/installclass.py b/installclass.py
index 6fac4217f..3e0908da5 100644
--- a/installclass.py
+++ b/installclass.py
@@ -389,6 +389,10 @@ class BaseInstallClass(object):
id.xsetup.xserver.hwstate.recalc_mode()
def setVideoCard(self, id, driver = None, videoRam = None):
+ if not id.videocard:
+ log.warning("Skipping video configuration because there's no videocard")
+ return
+
primary = id.videocard.primaryCard()
# rhpxl no longer gives us a list of drivers, so always just trust