1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

Use QEMU_IMG variable for TM/qcow2 scripts

This commit is contained in:
Jaime Melis 2013-07-12 19:01:35 +02:00
parent d6b66c2af8
commit 8a74cacf39
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ http://*)
*)
log "Cloning $SRC_PATH in $DST"
CLONE_CMD="cd $DST_DIR; qemu-img create -b $SRC_PATH -f qcow2 $DST_PATH"
CLONE_CMD="cd $DST_DIR; $QEMU_IMG create -b $SRC_PATH -f qcow2 $DST_PATH"
ssh_exec_and_log "$DST_HOST" "$CLONE_CMD" "Error copying $SRC to $DST"
;;
esac

View File

@ -62,7 +62,7 @@ DST_READLN=\$($READLINK -f $DST_PATH)
if [ \( -L $SRC_PATH \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
echo "Not moving files to image repo, they are the same"
else
qemu-img convert $SRC_PATH -O qcow2 $DST_PATH
$QEMU_IMG convert $SRC_PATH -O qcow2 $DST_PATH
fi
EOF
)

View File

@ -62,7 +62,7 @@ DST_READLN=\$($READLINK -f $DST_PATH)
if [ \( -L $SRC_PATH \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
echo "Not moving files to image repo, they are the same"
else
qemu-img convert $SRC_PATH -O qcow2 $DST_PATH
$QEMU_IMG convert $SRC_PATH -O qcow2 $DST_PATH
rm $SRC_PATH
fi
EOF