diff --git a/ubuntu/1-pre-install.sh b/ubuntu/1-pre-install.sh index 67ac9c8..36d12af 100644 --- a/ubuntu/1-pre-install.sh +++ b/ubuntu/1-pre-install.sh @@ -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