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

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

 



---
 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

_______________________________________________
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