From 9570bea5ef764b877a2d2108dd95fabcd2fe91ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Wed, 6 Sep 2017 13:03:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=D0=BE=D0=B2?= =?UTF-8?q?=20=D0=B2=20=D1=81=D0=B2=D1=8F=D0=B7=D0=B8=20=D1=81=20=D1=80?= =?UTF-8?q?=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D0=BD=D0=B3?= =?UTF-8?q?=D0=BE=D0=BC=20calculate-lib=20LVM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/install/variables/disk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/install/variables/disk.py b/pym/install/variables/disk.py index 989aa6b..b7efcb7 100644 --- a/pym/install/variables/disk.py +++ b/pym/install/variables/disk.py @@ -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: