summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2018-09-14 21:30:29 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-09-24 14:43:49 +0300
commitecf5aae79ee6aaef392988d3185a0a81cfdef1f8 (patch)
tree38b881f4d2154086a5bc9632cfa18e8984a942e2
parent0ee690fcb712718ca7ad179ec1a29a9803c80ed6 (diff)
downloadopenbmc-ecf5aae79ee6aaef392988d3185a0a81cfdef1f8.tar.xz
Enable kernel logs in journal
At one point there were duplicate kernel logs going into the journal. One was disabled (e9722d1) using systemd configuration options. Not sure what changed but recently no kernel messages have been going into the journal. Testing: Verified that only one kernel message appears in the journal with this change. (From meta-phosphor rev: 9e5d2bf6d989261478ec0d17705bb883c84ad4a5) Change-Id: I93bc90b53a0926c610304f73b567e56ad13a0ff1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy.bb3
-rw-r--r--meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy/disable-duplicate-kernel-msg.conf13
2 files changed, 0 insertions, 16 deletions
diff --git a/meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy.bb b/meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy.bb
index ce58a532a..930d44777 100644
--- a/meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy.bb
+++ b/meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy.bb
@@ -8,13 +8,10 @@ LIC_FILES_CHKSUM = "file://${PHOSPHORBASE}/COPYING.apache-2.0;md5=34400b68072d71
DEPENDS += "systemd"
SRC_URI = "file://service-restart-policy.conf"
-SRC_URI += "file://disable-duplicate-kernel-msg.conf"
FILES_${PN} += "${systemd_unitdir}/system.conf.d/service-restart-policy.conf"
-FILES_${PN} += "${systemd_unitdir}/journald.conf.d/disable-duplicate-kernel-msg.conf"
do_install() {
install -m 644 -D ${WORKDIR}/service-restart-policy.conf ${D}${systemd_unitdir}/system.conf.d/service-restart-policy.conf
- install -m 644 -D ${WORKDIR}/disable-duplicate-kernel-msg.conf ${D}${systemd_unitdir}/journald.conf.d/disable-duplicate-kernel-msg.conf
}
diff --git a/meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy/disable-duplicate-kernel-msg.conf b/meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy/disable-duplicate-kernel-msg.conf
deleted file mode 100644
index beb2f445f..000000000
--- a/meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy/disable-duplicate-kernel-msg.conf
+++ /dev/null
@@ -1,13 +0,0 @@
-# This file overrides some defaults for systemd
-#
-# OpenBMC uses busybox which uses klogd which causes duplicate
-# kernel messages to show up in the journal due to syslog.
-# This override prevents journald from reading from kmsg so
-# only one instance of the kernel messages will show up in
-# journald instead of the two of each currently put in the
-# journal
-#
-# See systemd-system.conf(5) for details on the conf files
-
-[Journal]
-ReadKMsg=no