|
|
|
@ -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:
|
|
|
|
|