summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-06-26 17:44:33 +0000
committerChris Lumens <clumens@redhat.com>2006-06-26 17:44:33 +0000
commitc3eee2fabfa3215f7ee34f19049ecd9cb6b5b6f8 (patch)
tree41a00cebb9bebc04176cbb79b9a502e6905730bd /rescue.py
parent3ee6978037dc76b1ea4157f7cc9f3948508e12ee (diff)
downloadanaconda-c3eee2fabfa3215f7ee34f19049ecd9cb6b5b6f8.tar.gz
anaconda-c3eee2fabfa3215f7ee34f19049ecd9cb6b5b6f8.tar.xz
anaconda-c3eee2fabfa3215f7ee34f19049ecd9cb6b5b6f8.zip
Display fs labels next to rescue choices (#196345).
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/rescue.py b/rescue.py
index 4959cf31e..63a879a85 100644
--- a/rescue.py
+++ b/rescue.py
@@ -311,7 +311,15 @@ def runRescue(anaconda):
partList = []
for (drive, fs, relstr) in disks:
- partList.append(drive)
+ try:
+ label = isys.readFSLabel(drive, makeDevNode=0)
+ except:
+ label = None
+
+ if label:
+ partList.append("%s (%s)" % (drive, label))
+ else:
+ partList.append(drive)
(button, choice) = \
ListboxChoiceWindow(screen, _("System to Rescue"),