[PATCH 5/7] Make the minimum size for custom spoke partitions 1MB.
David Lehman
dlehman at redhat.com
Wed Sep 12 15:50:55 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 83078fd..21ca121 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -192,6 +192,10 @@ class AddDialog(GUIObject):
self.size = Size(spec=size_text)
except Exception:
pass
+ else:
+ # Minimum size for ui-created partitions is 1MB.
+ if self.size.convertTo(spec="mb") < 1:
+ self.size = Size(spec="1mb")
self.window.destroy()
--
1.7.7.6
More information about the anaconda-patches
mailing list