Skip to content

Commit

Permalink
Calling rm without -f when removing some temporary custom mount relat…
Browse files Browse the repository at this point in the history
…ed files to ensure non-interactivity.
  • Loading branch information
daniel-baumann committed Apr 1, 2012
1 parent 8146bc4 commit a844e2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/live
Expand Up @@ -1695,12 +1695,12 @@ setup_unionfs ()
# that we won't hide a previous mount. We also ignore
# duplicate destinations in a more or less arbitrary way.
[ -e "${bindings}" ] && sort -k2 -sbu ${bindings} >> ${custom_mounts}
rm ${bindings}
rm -f ${bindings}

# After all mounts are considered we add symlinks so they
# won't be hidden by some mount.
[ -e "${links}" ] && sort -k2 -sbu ${links} >> ${custom_mounts}
rm ${links}
rm -f ${links}

[ "${DEBUG}" = "Yes" ] && cp ${custom_mounts} ${persistent_backing}

Expand Down

0 comments on commit a844e2f

Please sign in to comment.