summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-core
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2017-07-25 14:30:33 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-07-25 21:47:06 +0000
commitca1fb87c141e518fe5ac5fe9663a5c25567c587d (patch)
treeff6e1b597681fe018af07c50347ef31738627d05 /meta-phosphor/common/recipes-core
parent0825ef48d6fba4c5507d4278f3d67fcf468397b1 (diff)
downloadtalos-openbmc-ca1fb87c141e518fe5ac5fe9663a5c25567c587d.tar.gz
talos-openbmc-ca1fb87c141e518fe5ac5fe9663a5c25567c587d.zip
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@.target1
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
OpenPOWER on IntegriCloud