From: Harald Hoyer Date: Wed, 31 Jul 2013 11:12:41 +0000 (+0200) Subject: dracut-logger.sh: do not use systemd-cat, if no /run/systemd/journal X-Git-Tag: 031~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06ca27cdf553cc826e0d4fd8119ba76b9e7ebb09;p=platform%2Fupstream%2Fdracut.git dracut-logger.sh: do not use systemd-cat, if no /run/systemd/journal --- diff --git a/dracut-logger.sh b/dracut-logger.sh index 74a8a1bc..f4dcdb87 100755 --- a/dracut-logger.sh +++ b/dracut-logger.sh @@ -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"