From 6787b8ccee1481d5217f318885b43d1ec0562b57 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 16 May 2011 18:10:27 +0200 Subject: [PATCH] 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. --- dracut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut b/dracut index d19c162..e39fab9 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. -- 2.7.4