diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-08-21 21:08:13 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-25 02:07:32 +0300 |
commit | 870799b7c58de907a964ad5f38a103e9c90d1fa8 (patch) | |
tree | a57e66de6ed461f0fcf8921188593b2feca73433 /meta-phosphor/common/recipes-phosphor/state/files | |
parent | fbf143eabd096004e56311b6feb2c9b778e23340 (diff) | |
download | openbmc-870799b7c58de907a964ad5f38a103e9c90d1fa8.tar.xz |
Don't apply restore policy if system is on
If the BMC was rebooted while the chassis power was on
then we want the BMC to update it's targets to reflect
this and leave the system as-is. This also applies if
the host is running.
Resolves openbmc/openbmc#2180
Change-Id: Ib9c067d79368db749fd65d050132d15ad793fdbf
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/state/files')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service index a959311ad7..f398038993 100644 --- a/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service +++ b/meta-phosphor/common/recipes-phosphor/state/files/phosphor-discover-system-state@.service @@ -7,6 +7,7 @@ After=mapper-wait@-xyz-openbmc_project-state-host%i.service Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service After=op-reset-chassis-on@%i.service +ConditionPathExists=!/run/openbmc/chassis@%i-on [Service] Restart=no |