summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-05-01 12:18:43 -0500
committerDavid Lehman <dlehman@redhat.com>2009-05-04 19:32:42 -0500
commit14bc2c3411efa08578bbd7b97bb702fe6a5b135f (patch)
tree24099fdca82f8219197ccf58fb77f7c5f2d172b6 /iw
parentf5a788ef00606a068d530633ad0ac8db477b16a3 (diff)
downloadanaconda-14bc2c3411efa08578bbd7b97bb702fe6a5b135f.tar.gz
anaconda-14bc2c3411efa08578bbd7b97bb702fe6a5b135f.tar.xz
anaconda-14bc2c3411efa08578bbd7b97bb702fe6a5b135f.zip
Fix display of paths for device-mapper device in bootloader widget.
Diffstat (limited to 'iw')
-rw-r--r--iw/osbootwidget.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/iw/osbootwidget.py b/iw/osbootwidget.py
index 37a5eba39..9893fb9b9 100644
--- a/iw/osbootwidget.py
+++ b/iw/osbootwidget.py
@@ -349,6 +349,7 @@ class OSBootWidget:
for dev in keys:
(label, longlabel, fstype) = self.imagelist[dev]
+ device = self.storage.devicetree.getDeviceByName(dev)
if self.blname == "GRUB":
theLabel = longlabel
else:
@@ -365,9 +366,10 @@ class OSBootWidget:
if rootDev and rootDev.name == dev:
isRoot = 1
+ devPath = getattr(device, "path", "/dev/%s" % dev)
iter = self.osStore.append()
self.osStore.set_value(iter, 1, theLabel)
- self.osStore.set_value(iter, 2, "/dev/%s" % (dev,))
+ self.osStore.set_value(iter, 2, devPath)
self.osStore.set_value(iter, 3, isRoot)
if self.defaultDev == dev:
self.osStore.set_value(iter, 0, True)