[partition] Fix build against KPMCore3

This commit is contained in:
Adriaan de Groot 2021-05-26 16:36:28 +02:00
parent 03b2c8054b
commit 2d8cf6aabf

View File

@ -406,6 +406,7 @@ shouldWarnForGPTOnBIOS( const PartitionCoreModule* core )
} }
auto [ r, device ] = core->bootLoaderModel()->findBootLoader( core->bootLoaderInstallPath() ); auto [ r, device ] = core->bootLoaderModel()->findBootLoader( core->bootLoaderInstallPath() );
Q_UNUSED(r);
if ( device ) if ( device )
{ {
auto* table = device->partitionTable(); auto* table = device->partitionTable();
@ -416,7 +417,7 @@ shouldWarnForGPTOnBIOS( const PartitionCoreModule* core )
for ( const auto& partition : qAsConst( table->children() ) ) for ( const auto& partition : qAsConst( table->children() ) )
{ {
using CalamaresUtils::Units::operator""_MiB; using CalamaresUtils::Units::operator""_MiB;
if ( ( partition->activeFlags() & PartitionTable::Flag::BiosGrub ) if ( ( partition->activeFlags() & KPM_PARTITION_FLAG( BiosGrub ) )
&& ( partition->fileSystem().type() == FileSystem::Unformatted ) && ( partition->fileSystem().type() == FileSystem::Unformatted )
&& ( partition->capacity() >= 8_MiB ) ) && ( partition->capacity() >= 8_MiB ) )
{ {