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

[PATCH 03/16] Fix PartitionDevice.path to work with device-mapper disks.



---
 pyanaconda/storage/devices.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index db17391..abc1d81 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -1081,6 +1081,15 @@ class PartitionDevice(StorageDevice):
                                       start=geometry.start, end=geometry.end)
 
     @property
+    def path(self):
+        if not self.parents:
+            devDir = StorageDevice._devDir
+        else:
+            devDir = self.parents[0]._devDir
+
+        return "%s/%s" % (devDir, self.name)
+
+    @property
     def partType(self):
         """ Get the partition's type (as parted constant). """
         try:
-- 
1.7.3.2


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