From 9a5393ac7ee74bf8a0c7c188ae6ed6c0b3dd196d Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 10 May 2011 10:59:18 +0200 Subject: [PATCH] dracut: use /var/tmp rather than /tmp for the initramfs creation /tmp might be to small to hold the initramfs image --- dracut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut b/dracut index 772593e2..d2952882 100755 --- 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