summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManojkiran Eda <manojkiran.eda@gmail.com>2021-09-15 16:17:42 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-09-16 19:05:43 +0300
commit842eb7f21f9c9417999ffb930994639aad27125d (patch)
tree0c4c9fc10794a9e4af9717a9663a43d006a88121
parent605c37cb989a95c02633fcb93efb45102781b4bb (diff)
downloadopenbmc-842eb7f21f9c9417999ffb930994639aad27125d.tar.xz
Make soft-off service to be a soft dependency for host targets
In the current state soft-off service is a hard dependency (requires) for the host shut down target, so in any case where the soft-off service fails with an error condition, the shutdown target fails too. This commit intends to make soft-off service as a soft dependency(wants) so that the shutdown target can still proceed even though the pldmsoftoff service fails for whatever reason. Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I5650702c6eb71adab10fdb6493c9d582a9cb0129
-rw-r--r--meta-phosphor/recipes-phosphor/pldm/pldm_git.bb12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta-phosphor/recipes-phosphor/pldm/pldm_git.bb b/meta-phosphor/recipes-phosphor/pldm/pldm_git.bb
index bcf1bed23..4c9cbc983 100644
--- a/meta-phosphor/recipes-phosphor/pldm/pldm_git.bb
+++ b/meta-phosphor/recipes-phosphor/pldm/pldm_git.bb
@@ -28,22 +28,22 @@ EXTRA_OEMESON = " \
# Install pldmSoftPowerOff.service in correct targets
pkg_postinst:${PN} () {
- mkdir -p $D$systemd_system_unitdir/obmc-host-shutdown@0.target.requires
- LINK="$D$systemd_system_unitdir/obmc-host-shutdown@0.target.requires/pldmSoftPowerOff.service"
+ mkdir -p $D$systemd_system_unitdir/obmc-host-shutdown@0.target.wants
+ LINK="$D$systemd_system_unitdir/obmc-host-shutdown@0.target.wants/pldmSoftPowerOff.service"
TARGET="../pldmSoftPowerOff.service"
ln -s $TARGET $LINK
- mkdir -p $D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.requires
- LINK="$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.requires/pldmSoftPowerOff.service"
+ mkdir -p $D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.wants
+ LINK="$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.wants/pldmSoftPowerOff.service"
TARGET="../pldmSoftPowerOff.service"
ln -s $TARGET $LINK
}
pkg_prerm:${PN} () {
- LINK="$D$systemd_system_unitdir/obmc-host-shutdown@0.target.requires/pldmSoftPowerOff.service"
+ LINK="$D$systemd_system_unitdir/obmc-host-shutdown@0.target.wants/pldmSoftPowerOff.service"
rm $LINK
- LINK="$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.requires/pldmSoftPowerOff.service"
+ LINK="$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.wants/pldmSoftPowerOff.service"
rm $LINK
}