diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-21 15:30:26 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-21 15:30:26 +0000 |
commit | 647f3134ab4d9335bca10b10b6cfbefadf4c0677 (patch) | |
tree | f7fee5b02fd5376146809ba8c8f53672766303dd /run-bootstrap-in-chroot | |
parent | 620e088353ddd378316c36d72c81651a1baa3dbe (diff) | |
download | morph-647f3134ab4d9335bca10b10b6cfbefadf4c0677.tar.gz |
Clear the TMPDIR variable when entering the chroot.
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-x | run-bootstrap-in-chroot | 4 |
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 |