[PATCH 04/19] Don't bother resizing a container that has just been emptied.
David Lehman
dlehman at redhat.com
Thu Oct 18 21:49:32 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index f15f6d0..ebbca81 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1665,7 +1665,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
container = device.volume
device_type = AUTOPART_TYPE_BTRFS
- if container and not container.exists:
+ if container and not container.exists and \
+ self.__storage.devicetree.getChildren(container):
# adjust container to size of remaining devices
with ui_storage_logger():
# TODO: raid
--
1.7.7.6
More information about the anaconda-patches
mailing list