mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
[partition] Find Esp partition with modern flags.
This commit is contained in:
parent
94b6c95c44
commit
637d6ad752
1 changed files with 1 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue