Unset TMPDIR to avoid leaking the variable into chroot scripts
authorMichael Prokop <mika@grml.org>
Wed, 13 Jun 2012 15:52:30 +0000 (17:52 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 13 Jun 2012 15:53:16 +0000 (17:53 +0200)
We've reports that with TMPDIR being set the FAI scripts fail
inside the chroot, so let's avoid that.

grml-live

index c443cd1..45b93e6 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -12,6 +12,9 @@
 export LANG=C
 export LC_ALL=C
 
 export LANG=C
 export LC_ALL=C
 
+# avoid leaking into chroots
+unset TMPDIR
+
 # define function getfilesize before "set -e"
 if stat --help >/dev/null 2>&1; then
   getfilesize='stat -c %s'  # GNU stat
 # define function getfilesize before "set -e"
 if stat --help >/dev/null 2>&1; then
   getfilesize='stat -c %s'  # GNU stat