diff options
-rw-r--r-- | storage/devices.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/devices.py b/storage/devices.py index 04da8feac..8658e4f31 100644 --- a/storage/devices.py +++ b/storage/devices.py @@ -1141,7 +1141,8 @@ class PartitionDevice(StorageDevice): def dependsOn(self, dep): """ Return True if this device depends on dep. """ - if isinstance(dep, PartitionDevice) and dep.isExtended and self.isLogical: + if isinstance(dep, PartitionDevice) and dep.isExtended and \ + self.isLogical and self.disk == dep.disk: return True return Device.dependsOn(self, dep) |