summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-12-17 23:11:59 -0500
committerChris Lumens <clumens@redhat.com>2010-02-04 14:07:28 -0500
commitf5c29bcf17e565d1b6547873c6a1afcc34ebd7ed (patch)
tree45d965b5849a9ef2b917fa8b174f0513eae05e73 /anaconda
parent58313843acde95e53432a1790e9bb22d60104a12 (diff)
downloadanaconda-f5c29bcf17e565d1b6547873c6a1afcc34ebd7ed.tar.gz
anaconda-f5c29bcf17e565d1b6547873c6a1afcc34ebd7ed.tar.xz
anaconda-f5c29bcf17e565d1b6547873c6a1afcc34ebd7ed.zip
Move the isHeadless attribute onto the Anaconda class.
This requires having loader add --headless to the anaconda arguments automatically on s390, instead of having anaconda figure that out later.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda22
1 files changed, 10 insertions, 12 deletions
diff --git a/anaconda b/anaconda
index 629607642..d9e9ef687 100755
--- a/anaconda
+++ b/anaconda
@@ -449,6 +449,7 @@ class Anaconda:
self.displayMode = None
self.id = None
self.intf = None
+ self.isHeadless = False
self.isKickstart = False
self.mediaDevice = None
self.methodstr = None
@@ -666,6 +667,7 @@ if __name__ == "__main__":
flags.dlabel = True
anaconda.displayMode = opts.display_mode
+ anaconda.isHeadless = opts.isHeadless
if opts.noipv4:
flags.useIPv4 = False
@@ -746,10 +748,6 @@ if __name__ == "__main__":
anaconda.xdriver = opts.xdriver
anaconda.writeXdriver()
- # probing for hardware on an s390 seems silly...
- if iutil.isS390():
- opts.isHeadless = True
-
if not flags.livecdInstall:
isys.auditDaemon()
@@ -878,12 +876,13 @@ if __name__ == "__main__":
time.sleep(2)
anaconda.displayMode = 't'
- if opts.isHeadless: # s390/iSeries checks
- if anaconda.displayMode == 'g' and not (os.environ.has_key('DISPLAY') or flags.usevnc):
- stdoutLog.warning(_("DISPLAY variable not set. Starting text mode."))
- anaconda.displayMode = 't'
- graphical_failed = 1
- time.sleep(2)
+ # s390/iSeries checks
+ if anaconda.isHeadless and anaconda.displayMode == "g" and not \
+ (os.environ.has_key("DISPLAY") or flags.usevnc):
+ stdoutLog.warning(_("DISPLAY variable not set. Starting text mode."))
+ anaconda.displayMode = 't'
+ graphical_failed = 1
+ time.sleep(2)
# if DISPLAY not set either vnc server failed to start or we're not
# running on a redirected X display, so start local X server
@@ -1025,8 +1024,7 @@ if __name__ == "__main__":
ksdata.execute()
# set up the headless case
- if opts.isHeadless == 1:
- anaconda.id.setHeadless(opts.isHeadless)
+ if anaconda.isHeadless:
anaconda.dispatch.skipStep("keyboard", permanent = 1)
if not anaconda.isKickstart: