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:
parent
d6b66c2af8
commit
8a74cacf39
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user