From 3429e9db7c5bc84bf717f3268303adf4ca4f17fb Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 7 Apr 2016 18:58:51 +0000 Subject: [PATCH] feature #4110: use qemu-img instead of dd in mkimage --- src/tm_mad/common/mkimage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tm_mad/common/mkimage b/src/tm_mad/common/mkimage index cc8d8d5196..884c6629e1 100755 --- a/src/tm_mad/common/mkimage +++ b/src/tm_mad/common/mkimage @@ -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 <