From 8b395c1e3d5ebd2bf49e238c670c1f51681232c4 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 23 Jul 2001 19:21:14 +0000 Subject: 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) --- kickstart.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'kickstart.py') 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: -- cgit