projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd82da4
)
dracut-logger.sh: do not use systemd-cat, if no /run/systemd/journal
author
Harald Hoyer
<harald@redhat.com>
Wed, 31 Jul 2013 11:12:41 +0000
(13:12 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 31 Jul 2013 11:12:41 +0000
(13:12 +0200)
dracut-logger.sh
patch
|
blob
|
history
diff --git
a/dracut-logger.sh
b/dracut-logger.sh
index
74a8a1b
..
f4dcdb8
100755
(executable)
--- 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"