summaryrefslogtreecommitdiffstats
path: root/upgrade.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-01-19 22:32:56 +0000
committerChris Lumens <clumens@redhat.com>2007-01-19 22:32:56 +0000
commite941eddc8a294466e109153c1f3bfe036b4ca5eb (patch)
treed594df0fbbf194b5b66e2f34f63cc530eee7ac31 /upgrade.py
parente0c19fb1100b1f4f2cd343a273b1f1b4b7cd9a8f (diff)
downloadanaconda-e941eddc8a294466e109153c1f3bfe036b4ca5eb.tar.gz
anaconda-e941eddc8a294466e109153c1f3bfe036b4ca5eb.tar.xz
anaconda-e941eddc8a294466e109153c1f3bfe036b4ca5eb.zip
Upgrade is no longer an installclass, either.
Diffstat (limited to 'upgrade.py')
-rw-r--r--upgrade.py41
1 files changed, 40 insertions, 1 deletions
diff --git a/upgrade.py b/upgrade.py
index 047181b39..e5a8b5644 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -3,7 +3,7 @@
#
# Matt Wilson <msw@redhat.com>
#
-# Copyright 2001-2006 Red Hat, Inc.
+# Copyright 2001-2007 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
@@ -359,3 +359,42 @@ def upgradeMountFilesystems(anaconda):
anaconda.id.fsset.formatSwap(anaconda.rootPath, forceFormat=True)
anaconda.id.fsset.turnOnSwap(anaconda.rootPath, upgrading=True)
anaconda.id.fsset.mkDevRoot(anaconda.rootPath)
+
+def setSteps(anaconda):
+ dispatch = anaconda.dispatch
+ dispatch.setStepList(
+ "language",
+ "keyboard",
+ "welcome",
+ "installtype",
+ "findrootparts",
+ "findinstall",
+ "partitionobjinit",
+ "upgrademount",
+ "upgrademigfind",
+ "upgrademigratefs",
+ "upgradecontinue",
+ "reposetup",
+ "upgbootloader",
+ "checkdeps",
+ "dependencies",
+ "confirmupgrade",
+ "postselection",
+ "install",
+ "migratefilesystems",
+ "preinstallconfig",
+ "installpackages",
+ "postinstallconfig",
+ "instbootloader",
+ "dopostaction",
+ "methodcomplete",
+ "copylogs",
+ "complete"
+ )
+
+ if rhpl.getArch() != "i386" and rhpl.getArch() != "x86_64":
+ dispatch.skipStep("bootloader")
+ dispatch.skipStep("bootloaderadvanced")
+
+ if rhpl.getArch() != "i386" and rhpl.getArch() != "x86_64":
+ dispatch.skipStep("upgbootloader")