summaryrefslogtreecommitdiff
path: root/meta-openpower/recipes-phosphor/debug/openpower-debug-collector-systemd-links.inc
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2022-01-18 16:07:18 +0300
committerAndrew Geissler <andrew@geissonator.com>2022-11-10 20:46:49 +0300
commit26fb25b220d9132a6c0c050e8c8bf75b0322592e (patch)
tree91221fd2d0377a20bd8de9b2e2d58256827d0a76 /meta-openpower/recipes-phosphor/debug/openpower-debug-collector-systemd-links.inc
parent378bc28bdf9c95e84462b797ba666daff5c032db (diff)
downloadopenbmc-26fb25b220d9132a6c0c050e8c8bf75b0322592e.tar.xz
openpower: Add service link for host dump clear service
Add link for the service which clears the the dump stored in host memory during a host poweroff Included srcrev bump 583ebc090b..c0ab9d43d5 Claire Weinan (1): Populate timestamps with microsecond precision Dhruvaraj Subhashchandran (10): OpenPOWER: Do not wait for response deleting host dump OpenPOWER: Add additional trace to host dump operations OpenPOWER: Clear system and resource dump entries while powering off OpenPOWER: Do not delete dump entries during mp reboot OpenPOWER: Use non blocking call for host dump offload request OpenPOWER: Password is not mandatory for resource dump OpenPOWER: Prevent dump delete while offloading OpenPower: Return unavailable if any error in deleting host dump OpenPOWER: Add PCIInit also as host running state OpenPOWER: Add additional traces when requesting inst Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: Ibf2139402e8d190814c3fbc39b1ff93c269e9eb5
Diffstat (limited to 'meta-openpower/recipes-phosphor/debug/openpower-debug-collector-systemd-links.inc')
-rw-r--r--meta-openpower/recipes-phosphor/debug/openpower-debug-collector-systemd-links.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-openpower/recipes-phosphor/debug/openpower-debug-collector-systemd-links.inc b/meta-openpower/recipes-phosphor/debug/openpower-debug-collector-systemd-links.inc
index b252e6c115..37ae3fb42f 100644
--- a/meta-openpower/recipes-phosphor/debug/openpower-debug-collector-systemd-links.inc
+++ b/meta-openpower/recipes-phosphor/debug/openpower-debug-collector-systemd-links.inc
@@ -22,6 +22,14 @@ pkg_postinst:${PN}:append() {
fi
}
+pkg_postinst:${PN}:append:p10bmc() {
+ mkdir -p $D$systemd_system_unitdir/obmc-host-stop@0.target.wants
+
+ LINK="$D$systemd_system_unitdir/obmc-host-stop@0.target.wants/clear_hostdumps_poweroff.service"
+ TARGET="../clear_hostdumps_poweroff.service"
+ ln -s $TARGET $LINK
+}
+
pkg_prerm:${PN}:append() {
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'mpreboot', d)}" != mpreboot ]; then
LINK="$D$systemd_system_unitdir/obmc-host-crash@0.target.wants/openpower-debug-collector-checkstop@0.service"
@@ -34,3 +42,8 @@ pkg_prerm:${PN}:append() {
rm $LINK
fi
}
+
+pkg_prerm:${PN}:append:p10bmc() {
+ LINK="$D$systemd_system_unitdir/obmc-host-stop@0.target.wants/clear_hostdumps_poweroff.service"
+ rm $LINK
+}