summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-12-17 23:53:28 -0500
committerChris Lumens <clumens@redhat.com>2010-02-04 14:07:29 -0500
commitd2fbd3be94d015fd3133d32c69137b10fd7d7e8f (patch)
tree63a935aac16cbb85c6fb3069ad92cb6eaa5dd645 /anaconda
parentff60efad5c439e68c093037ae75619f876255ffe (diff)
downloadanaconda-d2fbd3be94d015fd3133d32c69137b10fd7d7e8f.tar.gz
anaconda-d2fbd3be94d015fd3133d32c69137b10fd7d7e8f.tar.xz
anaconda-d2fbd3be94d015fd3133d32c69137b10fd7d7e8f.zip
Finally remove the x_already_set hack.
I believe this was primarily needed for test mode (which we no longer have), and more recently live installs (which we have a flag to test for). Therefore, there's no reason to maintain this hack too.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda17
1 files changed, 2 insertions, 15 deletions
diff --git a/anaconda b/anaconda
index f01875ebe..0356b0b87 100755
--- a/anaconda
+++ b/anaconda
@@ -508,7 +508,7 @@ class Anaconda:
stdoutLog.error("Exception starting GUI installer: %s" %(e,))
# if we're not going to really go into GUI mode, we need to get
# back to vc1 where the text install is going to pop up.
- if not x_already_set:
+ if not flags.livecdInstall:
isys.vtActivate (1)
stdoutLog.warning("GUI installer startup failed, falling back to text mode.")
self.displayMode = 't'
@@ -853,21 +853,10 @@ if __name__ == "__main__":
checkMemory(anaconda)
#
- # find out what video hardware is available to run installer
- #
-
- # XXX kind of hacky - need to remember if we're running on an existing
- # X display later to avoid some initilization steps
- if os.environ.has_key('DISPLAY') and anaconda.displayMode == 'g':
- x_already_set = 1
- else:
- x_already_set = 0
-
- #
# now determine if we're going to run in GUI or TUI mode
#
# if no X server, we have to use text mode
- if not x_already_set and (not iutil.isS390() and not os.access("/usr/bin/Xorg", os.X_OK)):
+ if not flags.livecdInstall and not iutil.isS390() and not os.access("/usr/bin/Xorg", os.X_OK):
stdoutLog.warning(_("Graphical installation is not available. "
"Starting text mode."))
time.sleep(2)
@@ -941,8 +930,6 @@ if __name__ == "__main__":
anaconda.id = anaconda.instClass.installDataClass(anaconda, extraModules)
anaconda.instClass.setInstallData(anaconda)
- anaconda.id.x_already_set = x_already_set
-
# comment out the next line to make exceptions non-fatal
from exception import initExceptionHandling
anaconda.mehConfig = initExceptionHandling(anaconda)