revert PV change

This commit is contained in:
Tobias Powalowski 2023-01-15 18:10:53 +01:00
parent df1bb94925
commit 80cad97b61

View file

@ -667,7 +667,7 @@ _findpv()
# ! "$(${_LSBLK} TYPE ${i} | grep "lvm")"
#- not part of volume group
# $(pvs -o vg_name --noheading ${i} | grep " $")
if ! ${_LSBLK} FSTYPE "${i}" | grep -q "LVM2" && pvs -o vg_name --noheading "${i}" | grep -q " $"; then
if ! ${_LSBLK} FSTYPE "${i}" | grep -q "lvm" && pvs -o vg_name --noheading "${i}" | grep -q " $"; then
echo "${i}"
[[ "${1}" ]] && echo "${1}"
fi