summaryrefslogtreecommitdiff
path: root/run-bootstrap-in-chroot
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-21 15:30:26 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-21 15:30:26 +0000
commit647f3134ab4d9335bca10b10b6cfbefadf4c0677 (patch)
treef7fee5b02fd5376146809ba8c8f53672766303dd /run-bootstrap-in-chroot
parent620e088353ddd378316c36d72c81651a1baa3dbe (diff)
downloadmorph-647f3134ab4d9335bca10b10b6cfbefadf4c0677.tar.gz
Clear the TMPDIR variable when entering the chroot.
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-xrun-bootstrap-in-chroot4
1 files changed, 4 insertions, 0 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot
index a05decbe..9d9d8133 100755
--- a/run-bootstrap-in-chroot
+++ b/run-bootstrap-in-chroot
@@ -69,6 +69,10 @@ snapshotdir="$1"
cat >"./do-squeeze-chroot" <<EOF
#!/bin/sh
+
+# clear the temporary directory used outisde the chroot
+TMPDIR=
+
if mount -t proc proc "$dir/proc"; then
trap "umount \"$dir/proc\"" INT TERM EXIT
if mount -t sysfs sysfs "$dir/sys"; then