From 842eb7f21f9c9417999ffb930994639aad27125d Mon Sep 17 00:00:00 2001 From: Manojkiran Eda Date: Wed, 15 Sep 2021 18:47:42 +0530 Subject: 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 Change-Id: I5650702c6eb71adab10fdb6493c9d582a9cb0129 --- meta-phosphor/recipes-phosphor/pldm/pldm_git.bb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'meta-phosphor/recipes-phosphor/pldm') 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 } -- cgit v1.2.3