Only parse LVM items from rootvg
@@ -858,15 +858,12 @@ class DiskUtil(object):
DiskUtil.os_disk_lvm = False
return False
- lvm_items = self.get_lvm_items()
+ lvm_items = filter(lambda item: item.vg_name == "rootvg", self.get_lvm_items())
current_lv_names = set([item.lv_name for item in lvm_items])
- current_vg_names = set([item.vg_name for item in lvm_items])
-
expected_lv_names = set(['homelv', 'optlv', 'rootlv', 'swaplv', 'tmplv', 'usrlv', 'varlv'])
- expected_vg_names = set(['rootvg'])
- if expected_lv_names == current_lv_names and expected_vg_names == current_vg_names:
+ if expected_lv_names == current_lv_names:
DiskUtil.os_disk_lvm = True
else:
DiskUtil.os_disk_lvm = False
