Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2014-08-14 11:40:10 +0200
committerPetter Reinholdtsen <pere@hungry.com>2014-08-14 11:40:10 +0200
commit93da28e4e6f8c2a6f00bb8a41ec4769db575402b (patch)
tree9b607a3a9e75d2edd6cff0ffd308c21700bfb011
parent8dcc81f043b3550d3e6f1b1792507700158bd895 (diff)
Add workaround for libpam-tmpdir.
Set TMP and TMPDIR before working in chroot, to avoid trying to use a nonexisting directory as temporary storage. Based on a patch from James Valleroy.
-rwxr-xr-xbin/freedombox-customize4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/freedombox-customize b/bin/freedombox-customize
index 8d6acdc..9699048 100755
--- a/bin/freedombox-customize
+++ b/bin/freedombox-customize
@@ -23,6 +23,10 @@ echo info: building $MACHINE for $ARCHITECTURE to $DESTINATION
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
export LC_ALL=C LANGUAGE=C LANG=C
+# Override libpam-tmpdir setting during build, as the directories
+# are not created yet.
+export TMP=/tmp/ TMPDIR=/tmp/
+
# set this to 'true' to disable source fetching while debugging
export NOSOURCE=false