[partition] Find Esp partition with modern flags.
This commit is contained in:
parent
94b6c95c44
commit
637d6ad752
@ -504,16 +504,7 @@ PartitionCoreModule::scanForEfiSystemPartitions()
|
|||||||
}
|
}
|
||||||
|
|
||||||
QList< Partition* > efiSystemPartitions =
|
QList< Partition* > efiSystemPartitions =
|
||||||
KPMHelpers::findPartitions( devices,
|
KPMHelpers::findPartitions( devices, PartUtils::isEfiBootable );
|
||||||
[]( Partition* partition ) -> bool
|
|
||||||
{
|
|
||||||
if ( partition->activeFlags().testFlag( PartitionTable::FlagEsp ) )
|
|
||||||
{
|
|
||||||
cDebug() << "Found EFI system partition at" << partition->partitionPath();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
} );
|
|
||||||
|
|
||||||
if ( efiSystemPartitions.isEmpty() )
|
if ( efiSystemPartitions.isEmpty() )
|
||||||
cDebug() << "WARNING: system is EFI but no EFI system partitions found.";
|
cDebug() << "WARNING: system is EFI but no EFI system partitions found.";
|
||||||
|
Loading…
Reference in New Issue
Block a user