Supress error output of vgdisplay

This commit is contained in:
Suikan 2021-06-29 09:45:36 +09:00
parent 20d984a61a
commit e6bee52a06

View file

@ -114,7 +114,7 @@ fi # if crypt volume is unable to open
# ----- Configure the LVM in LUKS volume -----
# Check volume group ${VGNAME} exist or not
vgdisplay -s ${VGNAME} > /dev/null
vgdisplay -s ${VGNAME} &> /dev/null
if [ $? -eq 0 ] ; then # is return value 0? ( exist ?)
echo "...Volume group ${VGNAME} already exist. Skipped to create"
else