summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-04-08 11:47:20 +0200
committerHans de Goede <hdegoede@redhat.com>2009-04-08 17:56:27 +0200
commiteb80f3174f3f6c4ce78ee3be523105e39eccca87 (patch)
treedb8aa51cc901f95a0774f3bd6df19be80ffd71dc /iw
parent5ed10e0fc7dc8353547e89f341522d7cab6dcbb0 (diff)
downloadanaconda-eb80f3174f3f6c4ce78ee3be523105e39eccca87.tar.gz
anaconda-eb80f3174f3f6c4ce78ee3be523105e39eccca87.tar.xz
anaconda-eb80f3174f3f6c4ce78ee3be523105e39eccca87.zip
Use getDeviceNodeName() instead of basename of device node.
Missed this one in my initial cciss prep patch.
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_gui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 687b6064c..8a283cf04 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -46,6 +46,7 @@ from constants import *
from partition_ui_helpers_gui import *
from storage.partitioning import doPartitioning
from storage.devicelibs import lvm
+from storage.devices import devicePathToName
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
@@ -801,7 +802,7 @@ class PartitionWindow(InstallWindow):
part = part.nextPartition()
continue
- partName = part.getDeviceNodeName().split("/")[-1]
+ partName = devicePathToName(part.getDeviceNodeName())
device = self.storage.devicetree.getDeviceByName(partName)
if not device and not part.type & parted.PARTITION_FREESPACE:
log.debug("can't find partition %s in device"