1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-12 09:17:41 +03:00

feature #4110: use qemu-img instead of dd in mkimage

This commit is contained in:
Javi Fontan 2016-04-07 18:58:51 +00:00
parent 15827c7705
commit 3429e9db7c

View File

@ -51,7 +51,7 @@ DST_DIR=`dirname $DST_PATH`
#-------------------------------------------------------------------------------
ssh_make_path $DST_HOST $DST_DIR
CREATE_IMAGE="$DD if=/dev/zero of=$DST_PATH bs=1 count=1 seek=${SIZE}M"
CREATE_IMAGE="$QEMU_IMG create -f raw $DST_PATH ${SIZE}M"
MKFS_CMD=`mkfs_command $DST_PATH $FSTYPE $SIZE`
MKSCRIPT=$(cat <<EOF