From: sjg Date: Sun, 8 Nov 2015 23:46:05 +0000 (+0000) Subject: Ensure TEMPROOT is unique, to guard against multiple builds on same machine. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=06c1e96aacb49eece1b1d59d939c73d985a811b5;p=people%2Fliuw%2Ffreebsd.git Ensure TEMPROOT is unique, to guard against multiple builds on same machine. Differential Revision: D3002 Reviewed by: gjb --- diff --git a/release/scripts/mm-mtree.sh b/release/scripts/mm-mtree.sh index ef971027d45..4499c107634 100755 --- a/release/scripts/mm-mtree.sh +++ b/release/scripts/mm-mtree.sh @@ -30,7 +30,7 @@ display_usage () { # Set the default path for the temporary root environment # -TEMPROOT='/var/tmp/temproot' +TEMPROOT=`TMPDIR=/var/tmp mktemp -d -t temproot` # Assign the location of the mtree database #