Index: release/scripts/mm-mtree.sh =================================================================== --- release/scripts/mm-mtree.sh +++ release/scripts/mm-mtree.sh @@ -30,7 +30,15 @@ # Set the default path for the temporary root environment # -TEMPROOT='/var/tmp/temproot' +# Save the old TMPDIR variable +__TMPDIR="${TMPDIR}" +export TMPDIR="/var/tmp" +# Generate a uniq temproot dir to work around parallel release +# failure without chroot. +TEMPROOT=`mktemp -d -t 'temproot'` +# Restore the old TMPDIR +export TMPDIR="${__TMPDIR}" +unset __TMPDIR # Assign the location of the mtree database #