90lvm/module-setup.sh: redirect error message of lvs to /dev/null
Signed-off-by: Baoquan He <bhe@redhat.com>master
parent
a94cd56d6f
commit
8a9a5838f3
|
@ -41,7 +41,7 @@ install() {
|
||||||
push _activated "${DM_VG_NAME}/${DM_LV_NAME}"
|
push _activated "${DM_VG_NAME}/${DM_LV_NAME}"
|
||||||
fi
|
fi
|
||||||
if ! [[ $_needthin ]]; then
|
if ! [[ $_needthin ]]; then
|
||||||
[[ $(lvs --noheadings -o segtype ${DM_VG_NAME}) == *thin* ]] && _needthin=1
|
[[ $(lvs --noheadings -o segtype ${DM_VG_NAME} 2>/dev/null) == *thin* ]] && _needthin=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue