summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-06-23 02:09:22 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-07-09 15:14:49 -0300
commit0d895a225a30a86733bcfbd600fc6e5880b11977 (patch)
tree75c41cf363ed5d0dfcb89381a73717e18115c5e2 /archiso/mkarchiso
parent98c457c26f58cb134bad4e8cea7ccce9072d2384 (diff)
[archiso] Ensure that there is no .fs before create it
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso1
1 files changed, 1 insertions, 0 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index df9f49a..673f570 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -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