Remove some temporary custom mount related files after they're used.
authorTails developers <amnesia@boum.org>
Wed, 8 Feb 2012 11:44:30 +0000 (12:44 +0100)
committerDaniel Baumann <daniel@debian.org>
Sun, 1 Apr 2012 20:03:49 +0000 (22:03 +0200)
scripts/live

index e80c470..ac2845c 100755 (executable)
@@ -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}