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:
parent
246de96dcd
commit
ef1bf9b33b
@ -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."
|
||||||
|
Loading…
Reference in New Issue
Block a user