diff options
author | Shantappa Teekappanavar <sbteeks@yahoo.com> | 2021-09-01 01:49:10 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2021-09-11 00:07:40 +0300 |
commit | 2ffa05ede643a6bd1c9722f56f0f7d99e120aed5 (patch) | |
tree | 1e2e5900193fbd88f30a01524e980c1749eb97c3 /meta-openpower/recipes-phosphor/debug/openpower-debug-collector-systemd-links.inc | |
parent | 47acdb1e0d19b920c39f0cc470822fdac4ecb11a (diff) | |
download | openbmc-2ffa05ede643a6bd1c9722f56f0f7d99e120aed5.tar.xz |
Remove watchdog-timeout service on p10bmc systems
watchdog-timeout service is needed only if the PHAL machine features
is not present/enabled. In p10bmc is PHAL machine features based, so
removing the watchdog-timeout service.
This commit:
- Does not install openpower-debug-collector-watchdog-timeout@.service
file in the /lib/systemd/system directory for PHAL machine features
based systems
- Removes openpower-debug-collector-watchdog-timeout@0.service link to
the service file, openpower-debug-collector-watchdog-timeout@.service,
on PHAL machine features based systems
Testing:
Installed the image on p10bmc system and verified that the systemd
service file openpower-debug-collector-watchdog-timeout@.service was
not created, and the link file,
openpower-debug-collector-watchdog-timeout@0.service, also was not
created.
Signed-off-by: Shantappa Teekappanavar <sbteeks@yahoo.com>
Change-Id: I7bafd9b7e232043cddbcce76af51fd457169f759
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.inc | 14 |
1 files changed, 9 insertions, 5 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 5109a2fba9..9c522c1cd1 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 @@ -15,9 +15,11 @@ pkg_postinst:${PN}:append() { TARGET="../openpower-debug-collector-watchdog@.service" ln -s $TARGET $LINK - LINK="$D$systemd_system_unitdir/obmc-host-timeout@0.target.wants/openpower-debug-collector-watchdog-timeout@0.service" - TARGET="../openpower-debug-collector-watchdog-timeout@.service" - ln -s $TARGET $LINK + if [ "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal', d)}" != 'phal' ]; then + LINK="$D$systemd_system_unitdir/obmc-host-timeout@0.target.wants/openpower-debug-collector-watchdog-timeout@0.service" + TARGET="../openpower-debug-collector-watchdog-timeout@.service" + ln -s $TARGET $LINK + fi } pkg_prerm:${PN}:append() { @@ -27,6 +29,8 @@ pkg_prerm:${PN}:append() { fi LINK="$D$systemd_system_unitdir/obmc-host-timeout@0.target.wants/openpower-debug-collector-watchdog@0.service" rm $LINK - LINK="$D$systemd_system_unitdir/obmc-host-timeout@0.target.wants/openpower-debug-collector-watchdog-timeout@0.service" - rm $LINK + if [ "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal', d)}" != 'phal' ]; then + LINK="$D$systemd_system_unitdir/obmc-host-timeout@0.target.wants/openpower-debug-collector-watchdog-timeout@0.service" + rm $LINK + fi } |