[partition] Fix message (use MiB instead of bytes)

Reported by cfinnberg.

FIXES: #1796
This commit is contained in:
Adriaan de Groot 2021-09-28 16:54:16 +02:00
parent 6b460ce440
commit a72fc06502

View File

@ -558,9 +558,10 @@ PartitionViewStep::onLeave()
if ( !okSize )
{
cDebug() << o << "ESP too small";
const auto atLeastBytes = PartUtils::efiFilesystemMinimumSize();
const auto atLeastMiB = CalamaresUtils::Units::BytesToMiB( atLeastBytes );
description.append( ' ' );
description.append( tr( "The filesystem must be at least %1 MiB in size." )
.arg( PartUtils::efiFilesystemMinimumSize() ) );
description.append( tr( "The filesystem must be at least %1 MiB in size." ).arg( atLeastMiB ) );
}
if ( !okFlag )
{