summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-05-19 16:48:49 -0400
committerChris Lumens <clumens@redhat.com>2009-05-19 16:48:49 -0400
commita8d1cae54cfe371245dd343f081fe3a978a3978c (patch)
treedb5e8d7a6c7be816818f528802cd4eb7f1291dbf /iw
parentadeff81e38f23b39fdf756b73a8f7b4e5183c7f3 (diff)
downloadanaconda-a8d1cae54cfe371245dd343f081fe3a978a3978c.tar.gz
anaconda-a8d1cae54cfe371245dd343f081fe3a978a3978c.tar.xz
anaconda-a8d1cae54cfe371245dd343f081fe3a978a3978c.zip
Trim "mapper/" off device names in the bootloader UI (#501057).
Diffstat (limited to 'iw')
-rw-r--r--iw/osbootwidget.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/iw/osbootwidget.py b/iw/osbootwidget.py
index 9893fb9b9..c70118f95 100644
--- a/iw/osbootwidget.py
+++ b/iw/osbootwidget.py
@@ -26,6 +26,7 @@ import parted
import gui
import datacombo
from constants import *
+from storage.devices import devicePathToName
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
@@ -293,13 +294,11 @@ class OSBootWidget:
if not iter:
return None
- dev = model.get_value(iter, 2)
- theDev = dev[5:] # strip /dev/
-
+ dev = devicePathToName(model.get_value(iter, 2))
label = model.get_value(iter, 1)
isRoot = model.get_value(iter, 3)
isDefault = model.get_value(iter, 0)
- return (theDev, label, isDefault, isRoot)
+ return (dev, label, isDefault, isRoot)
def addEntry(self, widget, *args):