summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-02-01 22:44:49 +0000
committerChris Lumens <clumens@redhat.com>2007-02-01 22:44:49 +0000
commitc54bdf8466dccfdf7b1d156e3388a38070e39430 (patch)
tree451962538a41ea8d2d37e90d08aebb26c3571228 /installclass.py
parentbe6b9f976bd6911a9052337e89a8ebbc67e3a85a (diff)
downloadanaconda-c54bdf8466dccfdf7b1d156e3388a38070e39430.tar.gz
anaconda-c54bdf8466dccfdf7b1d156e3388a38070e39430.tar.xz
anaconda-c54bdf8466dccfdf7b1d156e3388a38070e39430.zip
Don't try to second guess any provided resolution or depth (like from a
kickstart file).
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/installclass.py b/installclass.py
index 64fc60a71..b821fb32e 100644
--- a/installclass.py
+++ b/installclass.py
@@ -289,31 +289,12 @@ class BaseInstallClass:
def setMiscXSettings(self, id, depth = None, resolution = None,
desktop = None, runlevel = None):
-
if depth:
- availableDepths = id.xsetup.xserver.hwstate.available_color_depths()
- if depth not in availableDepths:
- log.warning("Requested depth %s not available, falling back "
- "to %s" %(depth, availableDepths[-1]))
- depth = availableDepths[-1]
id.xsetup.xserver.hwstate.set_colordepth(depth)
if resolution:
- availableRes = id.xsetup.xserver.hwstate.available_resolutions()
- if resolution not in availableRes:
- log.warning("Requested resolution %s is not supported, "
- "falling back to %s. To avoid this you may need "
- "to specify the videocard and monitor specs on "
- "the xconfig ks directive if they were not probed "
- "correctly." %(resolution, availableRes[-1]))
- resolution = availableRes[-1]
id.xsetup.xserver.hwstate.set_resolution(resolution)
- if not resolution and not depth:
- # choose a sane default
- log.warning("resolution and depth not specified, trying to be sane")
- id.xsetup.xserver.hwstate.choose_sane_default()
-
if desktop is not None:
id.desktop.setDefaultDesktop(desktop)
if runlevel is not None: