summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 16e39b6..dc8d3d0 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -653,6 +653,10 @@ def action_setup_modify():
flash(_('The EFI partition requires a FAT32 filesystem'), category='error')
return redirect(url_for('commands'))
+ if partition.size.data <= 0:
+ flash(_('Partitions can\'t have a size of zero or lower'), category='error')
+ return redirect(url_for('commands'))
+
if cache_count == 0:
flash(_(f'Missing cache partition'), category='error')
return redirect(url_for('commands'))