[PATCH] Fix bug in dependency list for partitions.

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

 



A change at some point removed the important clause that the 'dep'
partition must be extended in order to make all logical partitions
depend on it.
---
 storage/devicetree.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index a2d0386..f1e056d 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -766,7 +766,8 @@ class DeviceTree(object):
         # special handling for extended partitions since the logical
         # partitions and their deps effectively depend on the extended
         logicals = []
-        if isinstance(dep, PartitionDevice):
+        if isinstance(dep, PartitionDevice) and dep.partType and \
+           dep.isExtended:
             # collect all of the logicals on the same disk
             for part in self.getDevicesByInstance(PartitionDevice):
                 if part.partType and part.isLogical and part.disk == dep.disk:
-- 
1.6.0.6

_______________________________________________
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