Pārlūkot izejas kodu

dispvm: clean the VM in case of failed savefile creation

Otherwise further tries to regenerate savefile would fail.
Marek Marczykowski-Górecki 9 gadi atpakaļ
vecāks
revīzija
23ae0ed990
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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