]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: set TMPDIR to /var/tmp
authorHarald Hoyer <harald@redhat.com>
Mon, 16 May 2011 16:10:27 +0000 (18:10 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 16 May 2011 16:10:27 +0000 (18:10 +0200)
we really don't want anything else than /var/tmp for our operations.
/tmp might be too small and any other location might not fit our needs.

dracut

diff --git a/dracut b/dracut
index d19c162da698a09fa59d85a7ec024b87ce4e12f1..e39fab9b87cf0574a934c358742d94bac164ba49 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -451,7 +451,7 @@ elif [[ -f "$outfile" && ! -w "$outfile" ]]; then
     exit 1
 fi
 
-[[ $TMPDIR && ! -w $TMPDIR ]] && unset TMPDIR
+readonly TMPDIR=/var/tmp
 readonly initdir=$(mktemp --tmpdir=/var/tmp/ -d -t initramfs.XXXXXX)
 
 # clean up after ourselves no matter how we die.