Update readme to use force flag instead

echo y seems to still prompt for each volume
when using -f will complete the action without
prompting.

Change-Id: Ic8231817656e2093e53e0bfcd1fd5e72bd8181b2
This commit is contained in:
Antony Messerli 2017-10-16 15:56:54 -05:00
parent 835c2632f2
commit c92d4c5938

View File

@ -169,7 +169,7 @@ cycle through all found VMs and re-provision them.
for VM_NAME in $(virsh list --all | awk '/running/ || /shut/ {print $2}'); do
virsh destroy "${VM_NAME}"
echo y | lvremove "/dev/mapper/vg01-${VM_NAME}"
lvremove -f "/dev/mapper/vg01-${VM_NAME}"
lvcreate -L 92160M vg01 -n "${VM_NAME}"
virsh start "${VM_NAME}"
done