diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-07-20 10:28:34 -0500 |
---|---|---|
committer | Andrew Geissler <andrewg@us.ibm.com> | 2017-07-21 10:48:26 -0500 |
commit | 191e1ff92ac841b674bd294c312dc93dd22391f8 (patch) | |
tree | d319f2100474008f1b0ef9f14080de5f373336d6 /meta-phosphor/common/recipes-phosphor/state | |
parent | a1fea2f119009663c3c3a1d34e21242520ef1e21 (diff) | |
download | talos-openbmc-191e1ff92ac841b674bd294c312dc93dd22391f8.tar.gz talos-openbmc-191e1ff92ac841b674bd294c312dc93dd22391f8.zip |
Implement new hard power off target
This target will allow the user to do an immediate
power off of the system without waiting for the host.
It can also be used to cause an immedate power off
if the host is hung during the normal power off
process.
The chassis poweroff target will now require the
host off target to ensure everything is properly
stopped when the chassis is powered off.
Change-Id: I8430d895ae5498d2e451aaf07480b0cf9550e8f2
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/state')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb b/meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb index af6b79c59..3ff00c3e0 100644 --- a/meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb +++ b/meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb @@ -80,12 +80,12 @@ INSTFMT = "phosphor-discover-system-state@{0}.service" FMT = "../${TMPL}:${SYSTEMD_DEFAULT_TARGET}.wants/${INSTFMT}" SYSTEMD_LINK_${PN}-discover += "${@compose_list(d, 'FMT', 'OBMC_HOST_INSTANCES')}" -# Force the shutdown target to run the host-stop target -HOST_STOP_TMPL = "obmc-host-stop@.target" +# Force the shutdown target to run the chassis-poweroff target +CHASSIS_STOP_TMPL = "obmc-chassis-poweroff@.target" HOST_STOP_TGTFMT = "obmc-host-shutdown@{1}.target" -HOST_STOP_INSTFMT = "obmc-host-stop@{0}.target" -HOST_STOP_FMT = "../${HOST_STOP_TMPL}:${HOST_STOP_TGTFMT}.requires/${HOST_STOP_INSTFMT}" -SYSTEMD_LINK_${PN}-host += "${@compose_list_zip(d, 'HOST_STOP_FMT', 'OBMC_HOST_INSTANCES', 'OBMC_HOST_INSTANCES')}" +CHASSIS_STOP_INSTFMT = "obmc-chassis-poweroff@{0}.target" +HOST_STOP_FMT = "../${CHASSIS_STOP_TMPL}:${HOST_STOP_TGTFMT}.requires/${CHASSIS_STOP_INSTFMT}" +SYSTEMD_LINK_${PN}-host += "${@compose_list_zip(d, 'HOST_STOP_FMT', 'OBMC_CHASSIS_INSTANCES', 'OBMC_HOST_INSTANCES')}" SRC_URI += "git://github.com/openbmc/phosphor-state-manager" SRCREV = "181f8364f81fc8864e9ae86f28de13f80cd9bbf9" |