diff options
-rw-r--r-- | tests/functions.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functions.sh b/tests/functions.sh index f6c4d33ee..c7e0ded61 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -464,7 +464,8 @@ function ts_image_init { local mib=${1:-"5"} # size in MiBs local img=${2:-"$TS_OUTDIR/${TS_TESTNAME}.img"} - dd if=/dev/zero of="$img" bs=1M count=$mib &> /dev/null + rm -f $img + truncate -s "${mib}M" "$img" echo "$img" return 0 } |