diff options
author | Harald Hoyer <harald@redhat.com> | 2015-11-18 14:46:30 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2015-11-25 14:21:33 +0100 |
commit | 62c00a88966d92a029b044b0feaf2ab7bfff66a8 (patch) | |
tree | 6be81d69d50e5e9aabfea5cc5350d891037a68e8 /dracut-logger.sh | |
parent | 1a2290ea7905c60f6b12bac7b753c53aeb29728d (diff) | |
download | dracut-62c00a88966d92a029b044b0feaf2ab7bfff66a8.tar.gz |
dracut.sh: only create one TMPDIR
use DRACUT_TMPDIR subdirs for everything
Diffstat (limited to 'dracut-logger.sh')
-rwxr-xr-x | dracut-logger.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dracut-logger.sh b/dracut-logger.sh index d1cee98d..e72716ff 100755 --- a/dracut-logger.sh +++ b/dracut-logger.sh @@ -148,8 +148,7 @@ dlog_init() { && type -P systemd-cat &>/dev/null \ && systemctl --quiet is-active systemd-journald.socket &>/dev/null \ && { echo "dracut-$DRACUT_VERSION" | systemd-cat -t 'dracut' &>/dev/null; } ; then - readonly _dlogdir="$(mktemp -p "$TMPDIR/" -d -t dracut-log.XXXXXX)" - readonly _systemdcatfile="$_dlogdir/systemd-cat" + readonly _systemdcatfile="$DRACUT_TMPDIR/systemd-cat" mkfifo "$_systemdcatfile" readonly _dlogfd=15 systemd-cat -t 'dracut' --level-prefix=true <"$_systemdcatfile" & |