[partition] Introduce check for EFI partition type-and-size

Re-use the existing message about partition type and size,
since I don't want to introduce another message with all the
specifics; give a works-always message instead.

The check itself is also straightforward, avoiding all of the
nuances and technically-this-might-work cases: FAT32, 300MiB+.

FIXES #607
This commit is contained in:
Adriaan de Groot 2021-07-06 12:54:25 +02:00
parent b5c56fd579
commit a4fadcd9be
3 changed files with 35 additions and 1 deletions

View file

@ -445,7 +445,7 @@ PartitionViewStep::onLeave()
QString message;
QString description;
if ( !esp )
if ( !esp || ( esp && !PartUtils::isEfiFilesystemSuitable( esp ) ) )
{
message = tr( "No EFI system partition configured" );
description = tr( "An EFI system partition is necessary to start %1."