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
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 b252e6c..37ae3fb 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 @@
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 @@
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
+}