[archiso] Ensure that there is no .fs before create it

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2011-06-23 02:09:22 -03:00
parent 98c457c26f
commit 0d895a225a

View File

@ -250,6 +250,7 @@ _mkfs () {
fi
_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
local _qflag=""
if [[ ${quiet} == "y" ]]; then