mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-26 10:03:37 +03:00
Fix qcow2 snap_revert for persistent images
This commit is contained in:
parent
ce5ceb156f
commit
88c11012e5
@ -64,12 +64,13 @@ DISK_PATH="${SYSTEM_DS_PATH}/disk.${DISK_ID}"
|
||||
|
||||
if [ "${CLONE}" = "YES" ]; then
|
||||
SNAP_DIR="${DISK_PATH}.snap"
|
||||
SNAP_DIR_SHORT=$(basename "$SNAP_DIR")
|
||||
else
|
||||
SNAP_DIR="${DISK_SRC}.snap"
|
||||
SNAP_DIR_SHORT="$SNAP_DIR"
|
||||
fi
|
||||
|
||||
SNAP_PATH="${SNAP_DIR}/${SNAP_ID}"
|
||||
SNAP_DIR_SHORT=$(basename "$SNAP_DIR")
|
||||
SNAP_PATH_SHORT="${SNAP_DIR_SHORT}/${SNAP_ID}"
|
||||
|
||||
SNAP_CMD="qemu-img create -f qcow2 -b \"${SNAP_PATH_SHORT}\" \"\$(readlink -f ${DISK_PATH})\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user