]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
Ensure TEMPROOT is unique, to guard against multiple builds on same machine.
authorsjg <sjg@FreeBSD.org>
Sun, 8 Nov 2015 23:46:05 +0000 (23:46 +0000)
committersjg <sjg@FreeBSD.org>
Sun, 8 Nov 2015 23:46:05 +0000 (23:46 +0000)
Differential Revision: D3002
Reviewed by: gjb

release/scripts/mm-mtree.sh

index ef971027d45652e06269a9009669fdf8de90ac9c..4499c1076343f39ae888ed2364e357755dfa57d4 100755 (executable)
@@ -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
 #