summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-12-17 23:48:31 -0500
committerChris Lumens <clumens@redhat.com>2010-02-04 14:07:29 -0500
commitff60efad5c439e68c093037ae75619f876255ffe (patch)
tree47be692a557d97858404f698b6f8af9e1f0ad024 /anaconda
parent7b2652c066dd27662c131a2c8abf466700024f26 (diff)
downloadanaconda-ff60efad5c439e68c093037ae75619f876255ffe.tar.gz
anaconda-ff60efad5c439e68c093037ae75619f876255ffe.tar.xz
anaconda-ff60efad5c439e68c093037ae75619f876255ffe.zip
Move instClass to be an attribute on Anaconda.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda21
1 files changed, 10 insertions, 11 deletions
diff --git a/anaconda b/anaconda
index 3774dd900..f01875ebe 100755
--- a/anaconda
+++ b/anaconda
@@ -449,6 +449,7 @@ class Anaconda:
self.displayMode = None
self.id = None
self.intf = None
+ self.instClass = None
self.isHeadless = False
self.ksdata = None
self.mediaDevice = None
@@ -525,8 +526,8 @@ class Anaconda:
self.intf = InstallInterface()
- def setBackend(self, instClass):
- b = instClass.getBackend()
+ def setBackend(self):
+ b = self.instClass.getBackend()
self.backend = apply(b, (self,))
def setMethodstr(self, methodstr):
@@ -644,7 +645,6 @@ if __name__ == "__main__":
extraModules = [] # XXX: this would be better as a callback
graphical_failed = 0
- instClass = None # the install class to use
vncS = vnc.VncServer() # The vnc Server object.
vncS.anaconda = anaconda
xserver_pid = None
@@ -656,7 +656,7 @@ if __name__ == "__main__":
sys.exit(0)
# Now that we've got arguments, do some extra processing.
- instClass = getInstClass()
+ anaconda.instClass = getInstClass()
setupLoggingFromOpts(opts)
@@ -784,7 +784,7 @@ if __name__ == "__main__":
anaconda.id = instdata.InstallData(anaconda, [])
if anaconda.ksdata:
- instClass.setInstallData(anaconda)
+ anaconda.instClass.setInstallData(anaconda)
# We need an interface before running kickstart execute methods for
# storage.
@@ -800,7 +800,7 @@ if __name__ == "__main__":
# command line 'nomount' overrides kickstart /same for vnc/
anaconda.rescue_mount = not (opts.rescue_nomount or anaconda.ksdata.rescue.nomount)
- rescue.runRescue(anaconda, instClass)
+ rescue.runRescue(anaconda)
# shouldn't get back here
sys.exit(1)
@@ -936,14 +936,13 @@ if __name__ == "__main__":
anaconda.setInstallInterface()
- anaconda.setBackend(instClass)
+ anaconda.setBackend()
- anaconda.id = instClass.installDataClass(anaconda, extraModules)
+ anaconda.id = anaconda.instClass.installDataClass(anaconda, extraModules)
+ anaconda.instClass.setInstallData(anaconda)
anaconda.id.x_already_set = x_already_set
- instClass.setInstallData(anaconda)
-
# comment out the next line to make exceptions non-fatal
from exception import initExceptionHandling
anaconda.mehConfig = initExceptionHandling(anaconda)
@@ -1023,7 +1022,7 @@ if __name__ == "__main__":
anaconda.dispatch.skipStep("keyboard", permanent = 1)
if not anaconda.ksdata:
- instClass.setSteps(anaconda)
+ anaconda.instClass.setSteps(anaconda)
else:
kickstart.setSteps(anaconda)