Signed-off-by: Baoquan He <[email protected]>
---
modules.d/90lvm/module-setup.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh
index a51bb05..abec1de 100755
--- a/modules.d/90lvm/module-setup.sh
+++ b/modules.d/90lvm/module-setup.sh
@@ -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
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html