aboutsummaryrefslogtreecommitdiffstats
path: root/dracut-logger.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2015-11-18 14:46:30 +0100
committerHarald Hoyer <harald@redhat.com>2015-11-25 14:21:33 +0100
commit62c00a88966d92a029b044b0feaf2ab7bfff66a8 (patch)
tree6be81d69d50e5e9aabfea5cc5350d891037a68e8 /dracut-logger.sh
parent1a2290ea7905c60f6b12bac7b753c53aeb29728d (diff)
downloaddracut-62c00a88966d92a029b044b0feaf2ab7bfff66a8.tar.gz
dracut.sh: only create one TMPDIR
use DRACUT_TMPDIR subdirs for everything
Diffstat (limited to 'dracut-logger.sh')
-rwxr-xr-xdracut-logger.sh3
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" &