mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 10:31: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
|
||||
|
||||
# ----- Configure the LVM in LUKS volume -----
|
||||
# Create a Physical Volume and Volume Group, if not exist
|
||||
if [ -e /dev/${VGNAME} ]; then
|
||||
# Check volume group ${VGNAME} exist or not
|
||||
vgdisplay -s ${VGNAME} > /dev/null
|
||||
if [ $? -eq 0 ] ; then # is return value 0? ( exist ?)
|
||||
echo "...Volume group ${VGNAME} already exist. Skipped to create"
|
||||
else
|
||||
echo "...Initialize a physical volume on ${CRYPTPARTNAME}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue