summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-09-09 04:52:18 +0000
committerBill Nottingham <notting@redhat.com>2005-09-09 04:52:18 +0000
commit5c90ff7b2b9e3486413d87dea2d26ff0e187a99f (patch)
tree970d581724573564c7962475bc0397f3b1a8df06 /installclass.py
parentec4a87597dc1d0f653b2e0574d57e55dbc727ddd (diff)
downloadanaconda-5c90ff7b2b9e3486413d87dea2d26ff0e187a99f.tar.gz
anaconda-5c90ff7b2b9e3486413d87dea2d26ff0e187a99f.tar.xz
anaconda-5c90ff7b2b9e3486413d87dea2d26ff0e187a99f.zip
* anaconda.spec: Bump version, tweak requirements
* installclass.py (setVideoCard, configureX): Adapt to new rhpl X setup code * kickstart.py (doXConfig): Likewise * kickstartData.py (__init__): Likewise * kickstartParser.py (doXConfig): Likewise * packages.py (writeXConfiguration): Likewise * xsetup.py (getArgList): Likewise * scripts/mk-images: Remove modules.pcimap, modules.usbmap, pcitable, from images, and associated trimmer scripts from files used. Add modules.alias, videoaliases. Trim modules.alias using trimmodalias. * scripts/upd-instroot: Don't keep Cards, but keep videoaliases. Don't run checkcards.py * utils/trimmodalias: New script, trim modules.alias file to match modules in the first/second stage * utils/trimpciids: Trim pci.ids based on modules.alias and videoaliases, not pcitable and modules.pcimap * utils/checkcards.py: Remove now obsolete script * utils/trimmodmap: Likewise * utils/trimpcitable: Likewise * utils/trimusbmap: Likewise
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py29
1 files changed, 9 insertions, 20 deletions
diff --git a/installclass.py b/installclass.py
index f36f4b686..212a68763 100644
--- a/installclass.py
+++ b/installclass.py
@@ -423,24 +423,16 @@ class BaseInstallClass:
id.xsetup.xhwstate.set_vsync(vsync)
id.xsetup.xhwstate.recalc_mode()
- def setVideoCard(self, id, server = None, card = None, videoRam = None):
- # oh suck. if on ppc, bail because nothing other than fbdev is
- # going to work all that well
- if iutil.getArch() == "ppc":
- return
+ def setVideoCard(self, id, driver = None, videoRam = None):
primary = id.videocard.primaryCard()
- if card:
- db = id.videocard.cardsDB()
- if db.has_key(card):
- vcdata = db[card]
- primary.setCardData(vcdata)
- primary.setDevID(vcdata["NAME"])
- primary.setDescription(vcdata["NAME"])
-
- id.xsetup.xhwstate.set_videocard_name(vcdata["NAME"])
- id.xsetup.xhwstate.set_videocard_card(vcdata["NAME"])
+ if driver:
+ db = rhpl.videocard.drivers
+ if db.has_key(driver):
+ primary.setDriver(driver)
+ id.xsetup.xhwstate.set_videocard_name(primary.getDescription())
+ id.xsetup.xhwstate.set_videocard_driver(driver)
else:
raise RuntimeError, "Unknown videocard specified: %s" %(card,)
@@ -449,12 +441,9 @@ class BaseInstallClass:
id.videocard.primaryCard().setVideoRam(str(videoRam))
id.xsetup.xhwstate.set_videocard_ram(int(videoRam))
- if server is not None:
- log.error("unable to really do anything with server right now")
-
- def configureX(self, id, server = None, card = None, videoRam = None, monitorName = None, hsync = None, vsync = None, resolution = None, depth = None, noProbe = 0, startX = 0):
- self.setVideoCard(id, server, card, videoRam)
+ def configureX(self, id, driver = None, videoRam = None, monitorName = None, hsync = None, vsync = None, resolution = None, depth = None, noProbe = 0, startX = 0):
+ self.setVideoCard(id, driver, videoRam)
self.setMonitor(id, hsync, vsync, monitorName)
if startX: