Skip to content
Snippets Groups Projects
Commit f4ecca25 authored by Gerardo Pozzi's avatar Gerardo Pozzi
Browse files

[archiso] mkarchiso: Use truncate instead of dd

parent f11f34ce
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment