The 2/2 patch is "TAKE III", this one depends on the 1/2 patch.
The support was removed during storage rewrite (commit e1a7fe9887886044b07587b3ec2caa2ff53ebfb2), perhaps because it hadn't worked before removing anyway (both branches of added if clause did the same thing - see commit 130f1e6ca2b3f46166a302ca21b1df53062383be)
It selects upgrade root based on upgrade --root-device command. Supports partition name (e.g. 'sda1', or 'Volgroup00-LogVol00') and UUID specified via 'UUID=<uuid>'.
--- upgrade.py | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/upgrade.py b/upgrade.py index 9d7081e..48b50a2 100644 --- a/upgrade.py +++ b/upgrade.py @@ -62,20 +62,26 @@ def queryUpgradeContinue(anaconda): sys.exit(0) return DISPATCH_FORWARD
+def setUpgradeRoot(anaconda): + anaconda.id.upgradeRoot = [] + root_device = None + # kickstart can pass device as device name or uuid. No quotes allowed. + if anaconda.isKickstart and anaconda.id.ksdata.upgrade.root_device is not None: + root_device = anaconda.id.ksdata.upgrade.root_device + for (dev, label) in anaconda.id.rootParts: + if ((root_device is not None) and + (root_device == dev.name or root_device == "UUID=%s" % dev.format.uuid)): + anaconda.id.upgradeRoot.insert(0, (dev,label)) + else: + anaconda.id.upgradeRoot.append((dev,label)) + def findRootParts(anaconda): if anaconda.dir == DISPATCH_BACK: return if anaconda.id.rootParts is None: anaconda.id.rootParts = findExistingRoots(anaconda)
- root_device = None - # ks.cfg can pass device as raw device, label or uuid. no quotes allowed - if anaconda.isKickstart and anaconda.id.ksdata.upgrade.root_device is not None: - root_device=anaconda.id.ksdata.upgrade.root_device - - anaconda.id.upgradeRoot = [] - for (dev, label) in anaconda.id.rootParts: - anaconda.id.upgradeRoot.append( (dev, label) ) + setUpgradeRoot(anaconda)
if anaconda.id.rootParts is not None and len(anaconda.id.rootParts) > 0: anaconda.dispatch.skipStep("findinstall", skip = 0)
please ignore... sent by accident
--- iw/network_gui.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/iw/network_gui.py b/iw/network_gui.py index 9f5ced7..ce2c879 100644 --- a/iw/network_gui.py +++ b/iw/network_gui.py @@ -44,13 +44,16 @@ class NetworkWindow(InstallWindow): self.hostnameEntry.set_text(self.hostname) self.hostnameEntry.connect("activate", lambda w: self.ics.setGrabNext(1)) - self.hostnameEntry.grab_focus() + self.hostnameEntry.connect("map-event", self.setFocus)
# load the icon gui.readImageFromFile("network.png", image=self.icon)
return self.align
+ def setFocus(self, area, data): + self.hostnameEntry.grab_focus() + def hostnameError(self): self.hostnameEntry.grab_focus() raise gui.StayOnScreen
please ignore
anaconda-devel@lists.fedoraproject.org