summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-12-18 16:37:51 -0500
committerChris Lumens <clumens@redhat.com>2010-02-04 14:07:30 -0500
commit479defc726e4c1ae665258e7fc80e4ff159698ee (patch)
tree5a4b196b150c73e5c2dcf3965e63676713de4b86 /anaconda
parent39a52ed1ddb2c4db05045955ccf9ba6066637807 (diff)
downloadanaconda-479defc726e4c1ae665258e7fc80e4ff159698ee.tar.gz
anaconda-479defc726e4c1ae665258e7fc80e4ff159698ee.tar.xz
anaconda-479defc726e4c1ae665258e7fc80e4ff159698ee.zip
Move upgrade-related data to the Anaconda object.
This also removes the hack where upgrade can be True, False, or None in order to test whether we've seen the upgrade screen or not. Instead, it introduces a global value hack. I consider this the slightly cleaner approach.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda4
1 files changed, 4 insertions, 0 deletions
diff --git a/anaconda b/anaconda
index 255fd6ce2..66ac24eaa 100755
--- a/anaconda
+++ b/anaconda
@@ -457,9 +457,13 @@ class Anaconda(object):
self.reIPLMessage = None
self.rescue = False
self.rescue_mount = True
+ self.rootParts = None
self.rootPath = "/mnt/sysimage"
self.stage2 = None
self.updateSrc = None
+ self.upgrade = flags.cmdline.has_key("preupgrade")
+ self.upgradeRoot = None
+ self.upgradeSwapInfo = None
# *sigh* we still need to be able to write this out
self.xdriver = None