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.
master
Harald Hoyer 2011-05-16 18:10:27 +02:00
parent 00dd4db5d2
commit 6787b8ccee
1 changed files with 1 additions and 1 deletions

2
dracut
View File

@ -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.