[Fedora-livecd-list] [PATCH] Don't let a nonstandard TMPDIR setting cause malfunction.

Jim Meyering jim at meyering.net
Fri Nov 16 22:33:53 UTC 2007


[resending, in such a way that Mailman doesn't strip the patch]

In http://thread.gmane.org/gmane.linux.redhat.fedora.livecd/1222,
[Re: [Fedora-livecd-list] livecd-creator fails with $TMPDIR not in build root]
I reported this failure:

Jim Meyering <jim at meyering.net> wrote:
> I've been experimenting with livecd-creator and my first
> run failed because I had TMPDIR=/t/jt7300.Wu7340.
> [btw, this is on rawhide x86_64, with latest cloned from git]
...

Here's a patch:

[I've added the '>', to protect against a bug this old version of Mailman]
> From 342e0ff30f18668741e2129d3a2793c0f2954b65 Mon Sep 17 00:00:00 2001
> From: Jim Meyering <meyering at redhat.com>
> Date: Fri, 16 Nov 2007 22:32:34 +0100
> Subject: [PATCH] Don't let a nonstandard TMPDIR setting cause malfunction.


Signed-off-by: Jim Meyering <meyering at redhat.com>
---
 creator/mayflower |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/creator/mayflower b/creator/mayflower
index 9a5c863..232281c 100755
--- a/creator/mayflower
+++ b/creator/mayflower
@@ -8,6 +8,10 @@
 # Inspired by similar programs from a bunch of other distributions.
 #
 
+# Override any TMPDIR setting from the environment, since this script is
+# run in a chroot: a nonstandard $TMPDIR setting would make mktemp fail.
+export TMPDIR=/tmp
+
 usage() {
     echo "$0 [--help] <out-initrd-image> <kernel-version>"
     echo
-- 
1.5.3.5.721.g039b




More information about the Fedora-livecd-list mailing list