From eb80f3174f3f6c4ce78ee3be523105e39eccca87 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 8 Apr 2009 11:47:20 +0200 Subject: Use getDeviceNodeName() instead of basename of device node. Missed this one in my initial cciss prep patch. --- iw/partition_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'iw') 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" -- cgit