90lvm/module-setup.sh: redirect error message of lvs to /dev/null

Signed-off-by: Baoquan He <bhe@redhat.com>
master
Baoquan He 2013-06-13 16:07:44 +08:00 committed by Harald Hoyer
parent a94cd56d6f
commit 8a9a5838f3
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ install() {
push _activated "${DM_VG_NAME}/${DM_LV_NAME}"
fi
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

return 0