Обновление вызовов в связи с рефакторингом calculate-lib LVM

master-3.5
parent 51b1432365
commit 9570bea5ef

@ -32,7 +32,7 @@ from calculate.lib.datavars import (TableVariable, Variable, VariableError,
from calculate.lib.utils.device import (getDeviceType,
getPartitionType, getPartitionDevice,
getRaidPartitions,
getLvmPartitions, getPartitionSize,
lvm, getPartitionSize,
humanreadableSize, udev,
getUUIDDict, getCommonDeviceName)
from calculate.install.variables.autopartition import Sizes
@ -532,8 +532,8 @@ class VariableOsDiskType(ReadonlyVariable):
for x in getRaidPartitions(prop.get('DEVPATH', '')):
raidUsedDisks[x] = device
if diskType.endswith("lvm"):
for x in getLvmPartitions(prop.get('DM_VG_NAME', ''),
prop.get('DM_LV_NAME', '')):
for x in lvm.used_partitions(prop.get('DM_VG_NAME', ''),
prop.get('DM_LV_NAME', '')):
if x in lvmUsedDisks:
lvmUsedDisks[x].append(device)
else:

Loading…
Cancel
Save