summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-05-12 19:41:43 -0500
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-05-12 19:41:43 -0500
commit2b45b3f7adc88ed52f3fcfa654aeb40cb12d7cab (patch)
tree2180cf9fb159bac519334e1cc6670254f9c9c841
parentc349749019e7d630e3f51995ee81ec8d7ebd207b (diff)
downloadtalos-openbmc-2b45b3f7adc88ed52f3fcfa654aeb40cb12d7cab.tar.gz
talos-openbmc-2b45b3f7adc88ed52f3fcfa654aeb40cb12d7cab.zip
Block chassis poweron and host start on completion of shutdown scripts
-rw-r--r--meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-chassis-poweron@.target1
-rw-r--r--meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-start-pre@.target1
2 files changed, 2 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-chassis-poweron@.target b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-chassis-poweron@.target
index 55f6d919b..fc4eaa436 100644
--- a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-chassis-poweron@.target
+++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-chassis-poweron@.target
@@ -10,3 +10,4 @@ Conflicts=obmc-chassis-poweroff@%i.target
RefuseManualStop=yes
OnFailure=obmc-chassis-poweroff@%i.target
OnFailureJobMode=flush
+ConditionPathExists=!/run/openbmc/host@0-ipl-complete
diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-start-pre@.target b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-start-pre@.target
index 2bc270c14..294ad11db 100644
--- a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-start-pre@.target
+++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-start-pre@.target
@@ -5,3 +5,4 @@ After={SYSTEMD_DEFAULT_TARGET}
Conflicts=obmc-host-stop@%i.target
RefuseManualStart=yes
RefuseManualStop=yes
+ConditionPathExists=!/run/openbmc/host@0-ipl-complete
OpenPOWER on IntegriCloud