qubes_prepare_saved_domain.sh: Check exit code of xm save

This commit is contained in:
Rafal Wojtczuk 2010-07-16 11:21:17 +02:00 committed by Joanna Rutkowska
parent aa894b5700
commit b578aab5d5

View File

@ -51,7 +51,7 @@ echo MEM=$MEM
xm mem-set $1 $(($MEM/1000))
sleep 1
touch $2
xm save $1 $2
if ! xm save $1 $2 ; then exit 1 ; fi
cd $VMDIR
tar -Scvf saved_cows.tar root-cow.img swap-cow.img