diff options
author | Chris Lumens <clumens@redhat.com> | 2006-06-26 17:44:33 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-06-26 17:44:33 +0000 |
commit | c3eee2fabfa3215f7ee34f19049ecd9cb6b5b6f8 (patch) | |
tree | 41a00cebb9bebc04176cbb79b9a502e6905730bd /rescue.py | |
parent | 3ee6978037dc76b1ea4157f7cc9f3948508e12ee (diff) | |
download | anaconda-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.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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"), |