dracut-logger.sh: do not use systemd-cat, if no /run/systemd/journal

master
Harald Hoyer 2013-07-31 13:12:41 +02:00
parent dd82da4e27
commit 06ca27cdf5
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ dlog_init() {
fi

if (( $sysloglvl > 0 )); then
if type -P systemd-cat &>/dev/null && (( $UID == 0 )) ; then
if [[ -d /run/systemd/journal ]] && type -P systemd-cat &>/dev/null && (( $UID == 0 )) ; then
readonly _dlogdir="$(mktemp --tmpdir="$TMPDIR/" -d -t dracut-log.XXXXXX)"
readonly _systemdcatfile="$_dlogdir/systemd-cat"
mkfifo "$_systemdcatfile"