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 {