diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2014-08-14 11:40:10 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2014-08-14 11:40:10 +0200 |
commit | 93da28e4e6f8c2a6f00bb8a41ec4769db575402b (patch) | |
tree | 9b607a3a9e75d2edd6cff0ffd308c21700bfb011 | |
parent | 8dcc81f043b3550d3e6f1b1792507700158bd895 (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-x | bin/freedombox-customize | 4 |
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 |