diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-20 15:55:19 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-20 16:15:08 -0400 |
commit | fcdfd3a0ab3d02c5a9bdafb49acc035844421a55 (patch) | |
tree | c3c0de2a723c91a52da2b80161aa45fc39ef6392 | |
parent | ff59b716da6b3760e5b8a943d911b4b56a10350b (diff) | |
download | anaconda-fcdfd3a0ab3d02c5a9bdafb49acc035844421a55.tar.gz anaconda-fcdfd3a0ab3d02c5a9bdafb49acc035844421a55.tar.xz anaconda-fcdfd3a0ab3d02c5a9bdafb49acc035844421a55.zip |
Make some fixes to the rescue mode system selection UI (#489973, #489977).
(1) When there's more than one system to choose from, display the name of the
device, its release string, and the label if it exists.
(2) Return the right type when the user makes a selection from the combo box.
-rw-r--r-- | rescue.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -273,7 +273,10 @@ def runRescue(anaconda, instClass): devList = [] for (device, relstr) in disks: - devList.append(device.path) + if getattr(device.format, "label", None): + devList.append("%s (%s) - %s" % (device.name, device.format.label, relstr)) + else: + devList.append("%s - %s" % (device.name, relstr)) (button, choice) = \ ListboxChoiceWindow(screen, _("System to Rescue"), @@ -286,7 +289,7 @@ def runRescue(anaconda, instClass): if button == string.lower (_("Exit")): root = None else: - root = disks[choice][0] + root = disks[choice] rootmounted = 0 |