Using syslog for StandardOutput in a service file was deprecated in
systemd v246 with commit f3dc6af20f ("core: automatically update
StandardOuput=syslog to =journal (and similar for StandardError=)").
Thus the following warnings are printed in the crash kernel when
creating a dump.
systemd[1]: /usr/lib/systemd/system/kdump-capture.service:23: Standard output type syslog
is obsolete, automatically updating to journal. Please update your unit file, and consider
removing the setting altogether.
systemd[1]: /usr/lib/systemd/system/kdump-capture.service:24: Standard output type
syslog+console is obsolete, automatically updating to journal+console. Please update your
unit file, and consider removing the setting altogether.
Fix this by redirecting the stdout and stderr to the journal.
Signed-off-by: Philipp Rudo <prudo(a)redhat.com>
---
dracut-kdump-capture.service | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dracut-kdump-capture.service b/dracut-kdump-capture.service
index 3f20aba..7109169 100644
--- a/dracut-kdump-capture.service
+++ b/dracut-kdump-capture.service
@@ -20,8 +20,8 @@ Environment=NEWROOT=/sysroot
Type=oneshot
ExecStart=/bin/kdump.sh
StandardInput=null
-StandardOutput=syslog
-StandardError=syslog+console
+StandardOutput=journal
+StandardError=journal+console
KillMode=process
RemainAfterExit=yes
--
2.35.1