From 49933eafe930a8b55db4d1eb7fd9701d79332a3a Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 24 Mar 2009 10:55:47 -0400 Subject: Move protectedPartition setup into storageInitialize (#491781). --- instdata.py | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'instdata.py') diff --git a/instdata.py b/instdata.py index e9a66245d..0b6df52f6 100644 --- a/instdata.py +++ b/instdata.py @@ -88,31 +88,6 @@ class InstallData: # XXX I still expect this to die when kickstart is the data store. self.ksdata = None - # We don't have install methods anymore, but put things that depend on - # the methodstr here. - if os.path.exists("/dev/live") and \ - stat.S_ISBLK(os.stat("/dev/live")[stat.ST_MODE]): - target = os.readlink("/dev/live") - self.storage.protectedPartitions = [target] - elif self.anaconda.methodstr and self.anaconda.methodstr.startswith("hd:"): - method = self.anaconda.methodstr[3:] - devspec = method.split(":", 3)[0] - - # XXX might as well move resolveDevice into DeviceTree - device = storage.resolveDevice(self.storage.devicetree, devspec) - if device is None: - if self.getUpgrade(): - return - else: - self.anaconda.intf.messageWindow(_("Unknown Device"), - _("The installation source given by device %s " - "could not be found. Please check your " - "parameters and try again.") % device, - type="custom", custom_buttons = [_("_Exit installer")]) - sys.exit(1) - - self.storage.protectedPartitions = [device.name] - def setInstallProgressClass(self, c): self.instProgress = c -- cgit