Explorar o código

dispvm: clean the VM in case of failed savefile creation

Otherwise further tries to regenerate savefile would fail.
Marek Marczykowski-Górecki %!s(int64=9) %!d(string=hai) anos
pai
achega
23ae0ed990
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      dispvm/qubes-prepare-saved-domain.sh

+ 1 - 0
dispvm/qubes-prepare-saved-domain.sh

@@ -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