summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-02-08 12:44:30 +0100
committerDaniel Baumann <daniel@debian.org>2012-04-01 22:03:49 +0200
commit8146bc4e2485566655d443f5b0d3b86df4e869b9 (patch)
tree57639bdf6f03d7191c0ec4c2980bb5fc657d408e /scripts
parentbaa35e3dbde1d68bedca73fa03425d0a7d8b374c (diff)
downloadlive-boot-8146bc4e2485566655d443f5b0d3b86df4e869b9.tar.gz
live-boot-8146bc4e2485566655d443f5b0d3b86df4e869b9.zip
Remove some temporary custom mount related files after they're used.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live
index e80c470..ac2845c 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1695,10 +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}
# 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}
[ "${DEBUG}" = "Yes" ] && cp ${custom_mounts} ${persistent_backing}