[partition] Compare size with the canonical source of "right EFI size"

While here, note that the canonical source returns bytes (not MiB).
This commit is contained in:
Adriaan de Groot 2021-09-28 16:49:53 +02:00
parent de63669cee
commit 6b460ce440
2 changed files with 2 additions and 3 deletions

View File

@ -472,8 +472,7 @@ isEfiFilesystemSuitableSize( const Partition* candidate )
{
auto size = candidate->capacity(); // bytes
using CalamaresUtils::Units::operator""_MiB;
if ( size >= 300_MiB )
if ( size >= efiFilesystemMinimumSize() )
{
return true;
}

View File

@ -94,7 +94,7 @@ bool isEfiFilesystemSuitableType( const Partition* candidate );
*/
bool isEfiFilesystemSuitableSize( const Partition* candidate );
/** @brief Returns the minimum size of an EFI boot partition.
/** @brief Returns the minimum size of an EFI boot partition in bytes.
*
* This is determined as 300MiB, based on the FAT32 standard
* and EFI documentation (and not a little discussion in Calamares