meta-google: gbmc-systemd-config: Log ramoops to journal
This enables it to be consumed by the syslog forwarder.
Change-Id: I67642017656abe6cbe9eb3613a477a7d0b8f6356
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service b/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service
new file mode 100644
index 0000000..474ed6f
--- /dev/null
+++ b/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service
@@ -0,0 +1,8 @@
+[Service]
+Type=oneshot
+SyslogIdentifier=gbmc-log-ramoops
+SyslogLevelPrefix=true
+ExecStart=/usr/bin/find /sys/fs/pstore -name '*-*' -print -exec cat {} \;
+
+[Install]
+WantedBy=multi-user.target