mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 20:05:37 -04:00
[partition] Fix build against KPMCore3
This commit is contained in:
parent
03b2c8054b
commit
2d8cf6aabf
1 changed files with 2 additions and 1 deletions
|
@ -406,6 +406,7 @@ shouldWarnForGPTOnBIOS( const PartitionCoreModule* core )
|
|||
}
|
||||
|
||||
auto [ r, device ] = core->bootLoaderModel()->findBootLoader( core->bootLoaderInstallPath() );
|
||||
Q_UNUSED(r);
|
||||
if ( device )
|
||||
{
|
||||
auto* table = device->partitionTable();
|
||||
|
@ -416,7 +417,7 @@ shouldWarnForGPTOnBIOS( const PartitionCoreModule* core )
|
|||
for ( const auto& partition : qAsConst( table->children() ) )
|
||||
{
|
||||
using CalamaresUtils::Units::operator""_MiB;
|
||||
if ( ( partition->activeFlags() & PartitionTable::Flag::BiosGrub )
|
||||
if ( ( partition->activeFlags() & KPM_PARTITION_FLAG( BiosGrub ) )
|
||||
&& ( partition->fileSystem().type() == FileSystem::Unformatted )
|
||||
&& ( partition->capacity() >= 8_MiB ) )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue