Browse Source

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

Signed-off-by: Baoquan He <bhe@redhat.com>
master
Baoquan He 12 years ago committed by Harald Hoyer
parent
commit
8a9a5838f3
  1. 2
      modules.d/90lvm/module-setup.sh

2
modules.d/90lvm/module-setup.sh

@ -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…
Cancel
Save