From 34e091833db99f4434432f4291f8b4e9d21f0204 Mon Sep 17 00:00:00 2001 From: Caio Carvalho Date: Tue, 9 Apr 2019 23:12:31 -0600 Subject: [PATCH] [partition] Fixing LVM scanning according to new kpmcore API --- src/modules/partition/core/PartitionCoreModule.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/partition/core/PartitionCoreModule.cpp b/src/modules/partition/core/PartitionCoreModule.cpp index 5d9b21bb0..1ee63c1b5 100644 --- a/src/modules/partition/core/PartitionCoreModule.cpp +++ b/src/modules/partition/core/PartitionCoreModule.cpp @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include @@ -686,12 +687,13 @@ PartitionCoreModule::scanForLVMPVs() } } - // Update LVM::pvList - LvmDevice::scanSystemLVM( physicalDevices ); - #ifdef WITH_KPMCOREGT33 + VolumeManagerDevice::scanDevices( physicalDevices ); + for ( auto p : LVM::pvList::list() ) #else + LvmDevice::scanSystemLVM( physicalDevices ); + for ( auto p : LVM::pvList ) #endif {