summaryrefslogtreecommitdiffstats
path: root/meta-phosphor
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-21 06:41:07 -0600
committerTimothy Pearson <tpearson@raptorengineering.com>2019-04-25 08:01:50 +0000
commit272c2158cfaf0c1537881aab72c91dd7724c539e (patch)
tree818911588c6b998064c9f87996a3be45a8e6aea4 /meta-phosphor
parent0cd975483fb609c8f807ede9f5fc6919d9f877c4 (diff)
downloadtalos-openbmc-272c2158cfaf0c1537881aab72c91dd7724c539e.tar.gz
talos-openbmc-272c2158cfaf0c1537881aab72c91dd7724c539e.zip
Enable OCC service after IPL completion
Diffstat (limited to 'meta-phosphor')
-rw-r--r--meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-ipl-complete@.target8
-rw-r--r--meta-phosphor/recipes-core/systemd/obmc-targets.bb3
2 files changed, 10 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-ipl-complete@.target b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-ipl-complete@.target
new file mode 100644
index 000000000..2c8614595
--- /dev/null
+++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets/obmc-host-ipl-complete@.target
@@ -0,0 +1,8 @@
+[Unit]
+Description=Host%i IPL Complete
+Wants={SYSTEMD_DEFAULT_TARGET}
+After={SYSTEMD_DEFAULT_TARGET}
+Conflicts=obmc-host-stop@%i.target
+RefuseManualStop=yes
+ConditionPathExists=/run/openbmc/host@0-ipl-complete
+Wants=op-occ-enable@%i.service
diff --git a/meta-phosphor/recipes-core/systemd/obmc-targets.bb b/meta-phosphor/recipes-core/systemd/obmc-targets.bb
index 1a13ea3a9..4ff94a79a 100644
--- a/meta-phosphor/recipes-core/systemd/obmc-targets.bb
+++ b/meta-phosphor/recipes-core/systemd/obmc-targets.bb
@@ -48,7 +48,8 @@ HOST_SYNCH_TARGETS = "start-pre starting started stop-pre stopping stopped reset
# multiple services and one of them is the quiesce target.
# - timeout: Target to run when host watchdog times out
# - reboot: Reboot the host
-HOST_ACTION_TARGETS = "start startmin stop quiesce reset shutdown crash timeout reboot"
+# - ipl-complete: IPL has finished, OK to start OCC monitors
+HOST_ACTION_TARGETS = "start startmin stop quiesce reset shutdown crash timeout reboot ipl-complete"
CHASSIS_SYNCH_FMT = "obmc-power-{0}@.target"
CHASSIS_ACTION_FMT = "obmc-chassis-{0}@.target"
OpenPOWER on IntegriCloud