From 76412f92a662dcd326897dbe2446f803f8b6a0f4 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Fri, 28 Apr 2000 20:53:28 +0000 Subject: limit loopback size to 2000 --- textw/partitioning_text.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'textw') diff --git a/textw/partitioning_text.py b/textw/partitioning_text.py index 44e091579..bdc9e2108 100644 --- a/textw/partitioning_text.py +++ b/textw/partitioning_text.py @@ -305,6 +305,13 @@ class LoopSizeWindow: % (avail, )), buttons = [ _("OK") ]) continue + if size > 2000 or swapSize > 2000: + ButtonChoiceWindow(screen, _("Bad Size"), + _("Neither the root file system size " + "nor the swap space size may be greater then " + "2000 megabytes."), + buttons = [ _("OK") ]) + continue break -- cgit