fix issue when cloning qcow2 images (#122)

Following this forum thread
https://forum.opennebula.org/t/opennebula-5-0-2-attach-detach-images-datastore-folder-not-cleaned-up/3111
This commit is contained in:
Anton Todorov authored and Ruben S. Montero committed 2016-10-11 14:54:52 +02:00
1 parent a13a625696
commit 28f97fd224
1 file changed
+1 -1
+1 -1
View File
@@ -104,8 +104,8 @@ else
CLONE_CMD=$(cat <<EOF
cd $DST_DIR
rm -rf $DST_PATH{,.snap}
mkdir -p ${DST_PATH}.snap
rm -f $DST_PATH
$QEMU_IMG create -b $SRC_PATH -f qcow2 $QCOW2_OPTIONS ${DST_PATH}.snap/0
ln -s ${DST_FILE}.snap/0 ${DST_PATH}
cd ${DST_PATH}.snap