[archiso] mkarchiso: Use truncate instead of dd

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2012-12-10 12:06:19 -03:00
parent f11f34ce48
commit f4ecca25b7

View File

@ -326,7 +326,7 @@ _mkfs () {
_msg_info "Creating ${_fs_type} image of ${_fs_size} MiB..." _msg_info "Creating ${_fs_type} image of ${_fs_size} MiB..."
rm -f "${_fs_img}" 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="" local _qflag=""
if [[ ${quiet} == "y" ]]; then if [[ ${quiet} == "y" ]]; then
_qflag="-q" _qflag="-q"