[PATCH] When considering whether anything can be shrunk, throw out protected devs.

Chris Lumens clumens at redhat.com
Wed Dec 5 18:30:05 UTC 2012


---
 pyanaconda/ui/gui/spokes/lib/resize.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py
index dcc8527..b500c97 100644
--- a/pyanaconda/ui/gui/spokes/lib/resize.py
+++ b/pyanaconda/ui/gui/spokes/lib/resize.py
@@ -142,7 +142,8 @@ class ResizeDialog(GUIObject):
                     # Devices that are not resizable are still deletable.
                     if dev.resizable:
                         freeSize = dev.size - dev.minSize
-                        canShrinkSomething = True
+                        if not dev.protected:
+                            canShrinkSomething = True
                     else:
                         freeSize = dev.size
 
-- 
1.7.11.2



More information about the anaconda-patches mailing list