summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuxiao Zhang <yuxiaozhang@google.com>2023-06-10 03:24:33 +0300
committerYuxiao Zhang <yuxiaozhang@google.com>2023-07-31 23:35:26 +0300
commit1de1e91e40e61b8c8cc582b8ba7e5ba4169a7a7b (patch)
treebf19e91835b29f4840873da4d402c0823571b6cd
parentafe9835aec3656dcf592100e17f43e95a0edd691 (diff)
downloadopenbmc-1de1e91e40e61b8c8cc582b8ba7e5ba4169a7a7b.tar.xz
meta-google: kdump-ramoops: moving to private repo
Move gbmc ramoops collector into private repo. This is to reduce the customized systemd script in public openbmc. Change-Id: I9e8861fc2261852eb86b9b222749cb340ac66dad Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
-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