]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: use /var/tmp rather than /tmp for the initramfs creation
authorHarald Hoyer <harald@redhat.com>
Tue, 10 May 2011 08:59:18 +0000 (10:59 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 10 May 2011 08:59:18 +0000 (10:59 +0200)
/tmp might be to small to hold the initramfs image

dracut

diff --git a/dracut b/dracut
index 772593e22d9475577f4e29cf0f79bcf0109ba296..d29528823e143246169b1f5c7355cdedb84508c9 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -452,7 +452,7 @@ elif [[ -f "$outfile" && ! -w "$outfile" ]]; then
 fi
 
 [[ $TMPDIR && ! -w $TMPDIR ]] && unset TMPDIR
-readonly initdir=$(mktemp -d -t initramfs.XXXXXX)
+readonly initdir=$(mktemp --tmpdir=/var/tmp/ -d -t initramfs.XXXXXX)
 
 # clean up after ourselves no matter how we die.
 trap 'ret=$?;rm -rf "$initdir";exit $ret;' EXIT