[partition] Use API for consistent EFI-size GS key

While here, remove the textual entry in GS, which was unused.
This commit is contained in:
Adriaan de Groot 2023-11-09 22:29:33 +01:00
parent 449fba03be
commit eb08c3facd

View File

@ -286,8 +286,7 @@ fillGSConfigurationEFI( Calamares::GlobalStorage* gs, const QVariantMap& configu
{
// Insert once as string, once as a size-in-bytes;
// changes to these keys should be synchronized with PartUtils.cpp
gs->insert( "efiSystemPartitionSize", sizeString );
gs->insert( "efiSystemPartitionSize_i", part_size.toBytes() );
gs->insert( PartUtils::efiFilesystemRecommendedSizeGSKey(), part_size.toBytes() );
// Assign long long int to long unsigned int to prevent compilation warning
auto byte_part_size = part_size.toBytes();