[PATCH 02/12] Don't show extended partitions that contain logical partitions.
David Lehman
dlehman at redhat.com
Thu Oct 4 22:10:06 UTC 2012
---
pyanaconda/ui/gui/spokes/lib/resize.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py
index 35ac8d1..ab768bb 100644
--- a/pyanaconda/ui/gui/spokes/lib/resize.py
+++ b/pyanaconda/ui/gui/spokes/lib/resize.py
@@ -116,6 +116,9 @@ class ResizeDialog(GUIObject):
for part in disk.format.partitions:
dev = self.storage.devicetree.getDeviceByPath(part.path)
+ if dev.isExtended and disk.format.logicalPartitions:
+ continue
+
# Devices that are not resizable are still deletable.
if dev.resizable:
freeSize = dev.size - dev.minSize
--
1.7.7.6
More information about the anaconda-patches
mailing list