mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-03 01:17:41 +03:00
feature #3782: bugs in qcow2 snap_create_live
This commit is contained in:
parent
838b68c6c5
commit
ed0cfeb6ab
@ -122,7 +122,7 @@ set -ex
|
||||
|
||||
mkdir -p "${SNAP_DIR}"
|
||||
|
||||
PREVIOUS_SNAP=$(readlink $SYSTEM_DS_DISK_PATH)
|
||||
PREVIOUS_SNAP=\$(readlink $SYSTEM_DS_DISK_PATH)
|
||||
|
||||
# The file must be created beforehand or libvirt complains with
|
||||
# "permission denied"
|
||||
@ -130,7 +130,7 @@ touch $SNAP_PATH
|
||||
|
||||
# Temporary xml file
|
||||
FILENAME="/tmp/snapshot-$VMID-$DISK_ID-$SNAP_ID"
|
||||
echo -e "$DOC" > \$FILENAME
|
||||
echo "$DOC" > \$FILENAME
|
||||
|
||||
virsh -c qemu:///system snapshot-create $DEPLOY_ID --disk-only --atomic \
|
||||
--xmlfile \$FILENAME
|
||||
|
Loading…
Reference in New Issue
Block a user