[PATCH 1/2] Use getDeviceNodeName() instead of basename of device node.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Missed this one in my initial cciss prep patch.
---
 iw/partition_gui.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 687b606..8a283cf 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"
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux