summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-23 19:21:14 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-23 19:21:14 +0000
commit8b395c1e3d5ebd2bf49e238c670c1f51681232c4 (patch)
tree18341835f0eed93120ae95caaf4b4d6181cea407 /kickstart.py
parent5f45d0c5f3dcfde1d94a912681409116a01d62d7 (diff)
downloadanaconda-8b395c1e3d5ebd2bf49e238c670c1f51681232c4.tar.gz
anaconda-8b395c1e3d5ebd2bf49e238c670c1f51681232c4.tar.xz
anaconda-8b395c1e3d5ebd2bf49e238c670c1f51681232c4.zip
new step: find root parts, remove those bits from the interfaces for
findinstall, hook up kickstart upgrade, mounting the root for an upgrade will mount the first in the list (which if you've gone through the interface is the only one, but if kickstart, upgrades the first install found)
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py
index 16321a5a9..2ceb3d90c 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -775,7 +775,18 @@ class KickstartBase(BaseInstallClass):
self.skipSteps.append("autopartition")
def setSteps(self, dispatch):
- BaseInstallClass.setSteps(self, dispatch)
+ if self.installType == "upgrade":
+ from upgradeonly import InstallClass
+ BaseInstallClass = InstallClass(0)
+ BaseInstallClass.setSteps(dispatch)
+
+ # we have no way to specify migrating yet
+ dispatch.skipStep("upgrademigfind")
+ dispatch.skipStep("upgrademigratefs")
+ dispatch.skipStep("upgradecontinue")
+ dispatch.skipStep("findinstall")
+ else:
+ BaseInstallClass.setSteps(self, dispatch)
if self.interactive or flags.autostep:
dispatch.skipStep("installtype")
@@ -808,6 +819,7 @@ class KickstartBase(BaseInstallClass):
self.preScripts = []
self.installType = "install"
+ self.id = id
self.readKickstart(id, self.file)
for script in self.preScripts: