summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service8
-rw-r--r--meta-google/recipes-google/systemd/gbmc-systemd-config.bb5
2 files changed, 1 insertions, 12 deletions
diff --git a/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service b/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service
deleted file mode 100644
index 84369e3c6b..0000000000
--- a/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service
+++ /dev/null
@@ -1,8 +0,0 @@
-[Service]
-Type=oneshot
-SyslogIdentifier=gbmc-log-ramoops
-SyslogLevelPrefix=true
-ExecStart=/usr/bin/find /sys/fs/pstore -name 'dmesg-*' -print -exec cat {} \; -exec rm -f {} \;
-
-[Install]
-WantedBy=multi-user.target
diff --git a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
index 7c644a2e57..37d7342194 100644
--- a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
+++ b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
@@ -10,7 +10,6 @@ S = "${WORKDIR}"
SRC_URI:append = " \
file://firmware-updates.target \
file://firmware-updates-pre.target \
- file://gbmc-log-ramoops.service \
file://40-gbmc-forward.conf \
file://40-gbmc-sysctl.conf \
file://40-gbmc-time.conf \
@@ -34,9 +33,9 @@ FILES:${PN}:append:dev = " \
SYSTEMD_SERVICE:${PN}:append = " \
firmware-updates.target \
firmware-updates-pre.target \
- gbmc-log-ramoops.service \
"
+RDEPENDS:${PN}:append = " bash"
# Put coredumps in the journal to ensure they stay in ram
do_install() {
install -d -m 0755 ${D}${systemd_unitdir}/coredump.conf.d
@@ -50,8 +49,6 @@ do_install() {
install -d -m 0755 ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/firmware-updates.target ${D}${systemd_system_unitdir}/
install -m 0644 ${WORKDIR}/firmware-updates-pre.target ${D}${systemd_system_unitdir}/
- install -m 0644 ${WORKDIR}/gbmc-log-ramoops.service ${D}${systemd_system_unitdir}/
-
# mask systemd-pstore.service to avoid copying logs to SPI
mkdir -p ${D}${sysconfdir}/systemd/system
ln -sv /dev/null ${D}${sysconfdir}/systemd/system/systemd-pstore.service