From f896107375cc2a47a5c4eb3095c6c365d8eed98e Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 15 May 2024 13:43:22 +0200 Subject: views: check if EFI filesystem is FAT32 in partition form Add validation for partition and format form to ensure the EFI partition has a FAT32 filesystem assigned. --- ogcp/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ogcp/views.py b/ogcp/views.py index 056c3e5..d02359b 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -648,6 +648,10 @@ def action_setup_modify(): if partition.part_type.data == 'CACHE': cache_count += 1 + if partition.part_type.data == 'EFI' and partition.fs.data != 'FAT32': + flash(_('The EFI partition requires a FAT32 filesystem'), category='error') + return redirect(url_for('commands')) + if cache_count == 0: flash(_(f'Missing cache partition'), category='error') return redirect(url_for('commands')) -- cgit v1.2.3-18-g5258