]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - dracut-logger.sh
network-manager: remove useless use of basename
[thirdparty/dracut.git] / dracut-logger.sh
index d1cee98d5da5eda66bd0db10dafaf8ca0473686f..e72716ff3d2c247df10de1b440b06764101ff588 100755 (executable)
@@ -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" &