Ensure other vgchange succeeds too

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:58 -04:00
parent 950ca378f8
commit fb058906a8
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."