mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
[partition] Fix build w/ "3.3.1" API
- Need older-style scanning, but new-style iteration
This commit is contained in:
parent
4e24ea29e2
commit
c844188907
1 changed files with 6 additions and 3 deletions
|
@ -683,14 +683,17 @@ PartitionCoreModule::scanForLVMPVs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WITH_KPMCORE4API
|
#if defined( WITH_KPMCORE4API )
|
||||||
VolumeManagerDevice::scanDevices( physicalDevices );
|
VolumeManagerDevice::scanDevices( physicalDevices );
|
||||||
|
for ( auto p : LVM::pvList::list() )
|
||||||
|
#else
|
||||||
|
#if defined( WITH_KPMCORE331API )
|
||||||
|
LvmDevice::scanSystemLVM( physicalDevices );
|
||||||
for ( auto p : LVM::pvList::list() )
|
for ( auto p : LVM::pvList::list() )
|
||||||
#else
|
#else
|
||||||
LvmDevice::scanSystemLVM( physicalDevices );
|
LvmDevice::scanSystemLVM( physicalDevices );
|
||||||
|
|
||||||
for ( auto p : LVM::pvList )
|
for ( auto p : LVM::pvList )
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
m_lvmPVs << p.partition().data();
|
m_lvmPVs << p.partition().data();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue