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>
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 96648a4..6353e74 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 @@
 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