mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Supress error output of vgdisplay
This commit is contained in:
parent
20d984a61a
commit
e6bee52a06
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ fi # if crypt volume is unable to open
|
||||||
|
|
||||||
# ----- Configure the LVM in LUKS volume -----
|
# ----- Configure the LVM in LUKS volume -----
|
||||||
# Check volume group ${VGNAME} exist or not
|
# 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 ?)
|
if [ $? -eq 0 ] ; then # is return value 0? ( exist ?)
|
||||||
echo "...Volume group ${VGNAME} already exist. Skipped to create"
|
echo "...Volume group ${VGNAME} already exist. Skipped to create"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue