op-reset-host-check: update for recent state mgr changes
The following commit refactored the way the host state is discovered
when the BMC is reset and the host is running:
https://github.com/openbmc/phosphor-state-manager/commit/0d1c3f1f9329c853677f0581287afef83eeea0f0
All of the discovery now happens in the
xyz.openbmc_project.State.Host.service so set the appropriate dependency
on that.
Tested:
- Did a chassis power on, set the CFAM register to indicate host is
running, and rebooted the BMC. Verified that service ran after the
host had been probed over IPMI and PLDM and appropriate error was
logged.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I02fab25a4a2ed2b093bc45a5a68fca0507b3dce6
diff --git a/service_files/op-reset-host-check@.service.in b/service_files/op-reset-host-check@.service.in
index 9f5d1a6..7fd6d67 100644
--- a/service_files/op-reset-host-check@.service.in
+++ b/service_files/op-reset-host-check@.service.in
@@ -1,6 +1,7 @@
[Unit]
Description=Check Host%i status on BMC reset via CFAM reg
-After=phosphor-reset-host-check@%i.service
+Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
+After=mapper-wait@-xyz-openbmc_project-state-host%i.service
Wants=obmc-host-reset-running@%i.target
Before=obmc-host-reset-running@%i.target
Wants=op-reset-chassis-on@%i.service