From: Harald Hoyer Date: Mon, 16 May 2011 16:10:27 +0000 (+0200) Subject: dracut: set TMPDIR to /var/tmp X-Git-Tag: 011~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6787b8ccee1481d5217f318885b43d1ec0562b57;p=thirdparty%2Fdracut.git dracut: set TMPDIR to /var/tmp 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. --- diff --git a/dracut b/dracut index d19c162da..e39fab9b8 100755 --- 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.