mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Change volume group existence check
This commit is contained in:
parent
831b4c20d1
commit
6408e5ac74
1 changed files with 3 additions and 2 deletions
|
|
@ -113,8 +113,9 @@ HEREDOC
|
||||||
fi # if crypt volume is unable to open
|
fi # if crypt volume is unable to open
|
||||||
|
|
||||||
# ----- Configure the LVM in LUKS volume -----
|
# ----- Configure the LVM in LUKS volume -----
|
||||||
# Create a Physical Volume and Volume Group, if not exist
|
# Check volume group ${VGNAME} exist or not
|
||||||
if [ -e /dev/${VGNAME} ]; then
|
vgdisplay -s ${VGNAME} > /dev/null
|
||||||
|
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
|
||||||
echo "...Initialize a physical volume on ${CRYPTPARTNAME}"
|
echo "...Initialize a physical volume on ${CRYPTPARTNAME}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue