diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-07-25 22:30:33 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-07-26 00:47:06 +0300 |
commit | ca1fb87c141e518fe5ac5fe9663a5c25567c587d (patch) | |
tree | ff6e1b597681fe018af07c50347ef31738627d05 /meta-phosphor/common/recipes-core | |
parent | 0825ef48d6fba4c5507d4278f3d67fcf468397b1 (diff) | |
download | openbmc-ca1fb87c141e518fe5ac5fe9663a5c25567c587d.tar.xz |
Ensure host stop target completes after chassis off
If the chassis poweroff target is running at the same
time as the host stop target, ensure the host does
not consider itself complete until the chassis
is fully off. This ensures host reboots will
wait for the chassis to be fully off before starting
the next boot.
Resolves openbmc/openbmc#2026
Change-Id: Iefcbb6435cc81393d0591cf4c7bb4eceeef906f0
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-core')
-rw-r--r-- | meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-stop@.target | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-stop@.target b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-stop@.target index 96648a40a..6353e74da 100644 --- a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-stop@.target +++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-stop@.target @@ -4,6 +4,7 @@ Wants={SYSTEMD_DEFAULT_TARGET} After={SYSTEMD_DEFAULT_TARGET} Wants=mapper-wait@-org-openbmc-control-chassis%i.service After=mapper-wait@-org-openbmc-control-chassis%i.service +After=obmc-chassis-poweroff@%i.target Conflicts=obmc-host-start@%i.target RefuseManualStop=yes OnFailure=obmc-chassis-poweroff@%i.target |