dispvm: fix setting up DispVM based on non-default template

Replace 'vmdir' symlink instead of creating new one inside of 'vmdir'
directory.
This commit is contained in:
Marek Marczykowski-Górecki 2015-02-11 15:02:33 +01:00
parent 246de96dcd
commit ef1bf9b33b

View File

@ -56,7 +56,7 @@ if ! virsh -c xen:/// save $1 $2; then
exit 1 exit 1
fi fi
rm -f $QMEMMAN_STOP rm -f $QMEMMAN_STOP
ln -sf $VMDIR /var/lib/qubes/dvmdata/vmdir ln -snf $VMDIR /var/lib/qubes/dvmdata/vmdir
cd $VMDIR cd $VMDIR
tar -Scf saved-cows.tar volatile.img tar -Scf saved-cows.tar volatile.img
echo "DVM savefile created successfully." echo "DVM savefile created successfully."