Ensure other vgchange succeeds too

This commit is contained in:
Joshua Boniface 2021-12-13 16:45:27 -05:00
parent 9892e06b94
commit 226ef3a039
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ echo -n "Disabing potential LVM volume groups on target device... "
for vg in $( pvscan | grep "${target_disk}" | awk '{ print $4 }' ); do
vgchange -an ${vg} >&2 || true
sleep 1
vgchange -an ${vg} >&2
vgchange -an ${vg} >&2 || true
yes | vgremove -f ${vg} || true
done
echo "done."