Browse Source

dracut: use /var/tmp rather than /tmp for the initramfs creation

/tmp might be to small to hold the initramfs image
master
Harald Hoyer 14 years ago
parent
commit
9a5393ac7e
  1. 2
      dracut

2
dracut

@ -452,7 +452,7 @@ elif [[ -f "$outfile" && ! -w "$outfile" ]]; then @@ -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

Loading…
Cancel
Save