From 637d6ad7523810972707cd70ab7b72b7374cad36 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 9 Jan 2018 11:12:13 -0500 Subject: [PATCH] [partition] Find Esp partition with modern flags. --- src/modules/partition/core/PartitionCoreModule.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/modules/partition/core/PartitionCoreModule.cpp b/src/modules/partition/core/PartitionCoreModule.cpp index e8cdc64b8..178860e2e 100644 --- a/src/modules/partition/core/PartitionCoreModule.cpp +++ b/src/modules/partition/core/PartitionCoreModule.cpp @@ -504,16 +504,7 @@ PartitionCoreModule::scanForEfiSystemPartitions() } QList< Partition* > efiSystemPartitions = - KPMHelpers::findPartitions( devices, - []( Partition* partition ) -> bool - { - if ( partition->activeFlags().testFlag( PartitionTable::FlagEsp ) ) - { - cDebug() << "Found EFI system partition at" << partition->partitionPath(); - return true; - } - return false; - } ); + KPMHelpers::findPartitions( devices, PartUtils::isEfiBootable ); if ( efiSystemPartitions.isEmpty() ) cDebug() << "WARNING: system is EFI but no EFI system partitions found.";