[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:
parent
de63669cee
commit
6b460ce440
@ -472,8 +472,7 @@ isEfiFilesystemSuitableSize( const Partition* candidate )
|
|||||||
{
|
{
|
||||||
auto size = candidate->capacity(); // bytes
|
auto size = candidate->capacity(); // bytes
|
||||||
|
|
||||||
using CalamaresUtils::Units::operator""_MiB;
|
if ( size >= efiFilesystemMinimumSize() )
|
||||||
if ( size >= 300_MiB )
|
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ bool isEfiFilesystemSuitableType( const Partition* candidate );
|
|||||||
*/
|
*/
|
||||||
bool isEfiFilesystemSuitableSize( 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
|
* This is determined as 300MiB, based on the FAT32 standard
|
||||||
* and EFI documentation (and not a little discussion in Calamares
|
* and EFI documentation (and not a little discussion in Calamares
|
||||||
|
Loading…
Reference in New Issue
Block a user