Skip to content

Commit

Permalink
Merge pull request #2564 from rmetrich/lvmraid
Browse files Browse the repository at this point in the history
Update 110_include_lvm_code.sh to make sure vgremove is called before recreating the VG
  • Loading branch information
gdha committed Feb 9, 2021
2 parents 2c97fee + 70acf6f commit acb1984
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -140,6 +140,7 @@ EOF
cat >> "$LAYOUT_CODE" <<EOF
if [ \$create_volume_group -eq 1 ] ; then
LogPrint "Creating LVM VG '$vg'; Warning: some properties may not be preserved..."
lvm vgremove --force --force --yes $vg >&2 || true
if [ -e "$vgrp" ] ; then
rm -rf "$vgrp"
fi
Expand Down

0 comments on commit acb1984

Please sign in to comment.