From f4ecca25b76c3470adc42351d23f2808ff0a8bee Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Mon, 10 Dec 2012 12:06:19 -0300 Subject: [archiso] mkarchiso: Use truncate instead of dd Signed-off-by: Gerardo Exequiel Pozzi --- archiso/mkarchiso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index a1ff68d..9c714a1 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -326,7 +326,7 @@ _mkfs () { _msg_info "Creating ${_fs_type} image of ${_fs_size} MiB..." rm -f "${_fs_img}" - dd of="${_fs_img}" count=0 bs=1M seek=${_fs_size} &> /dev/null + truncate -s ${_fs_size}M "${_fs_img}" local _qflag="" if [[ ${quiet} == "y" ]]; then _qflag="-q" -- cgit v1.2.3-70-g09d2