dispvm: clean the VM in case of failed savefile creation

Otherwise further tries to regenerate savefile would fail.
This commit is contained in:
Marek Marczykowski-Górecki 2015-05-15 03:19:28 +02:00
parent 8aaef404de
commit 23ae0ed990

View File

@ -55,6 +55,7 @@ sleep 1
touch $2
if ! virsh -c xen:/// save $1 $2; then
rm -f $QMEMMAN_STOP
qvm-kill $1
exit 1
fi
rm -f $QMEMMAN_STOP