diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-07-31 15:41:04 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-08-04 10:56:32 +0200 |
commit | 1a42b9203412cab698fe8cc665918592b7121579 (patch) | |
tree | c0f5696f237662aa32b6a73b2a2d209f2484c548 | |
parent | d3b393f377df675b3ce2bf3f2700b639e3cfcafc (diff) | |
download | anaconda-1a42b9203412cab698fe8cc665918592b7121579.tar.gz anaconda-1a42b9203412cab698fe8cc665918592b7121579.tar.xz anaconda-1a42b9203412cab698fe8cc665918592b7121579.zip |
When checking logical partition dependcies, make sure the are one the same disk
When checking if a logical partition dependsOn() another device because that
other device is an extended partition also make sure they are on the same disk.
-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) |