Ensure other vgchange succeeds too
This commit is contained in:
parent
950ca378f8
commit
fb058906a8
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue