bmc-reset: ensure chassis power on target complete
This logic will potentially launch the obmc-host-quiesce@.target so
ensure the transition to chassis power on has completed before
initiating this new target.
Its a fairly complex scenario but basically this service is only
launched in scenarios where the BMC comes out of reset and pgood is on.
In that situation, the state management code creates a file,
/run/openbmc/obmc-chassis@0-on, and starts the
obmc-chassis-poweron@.target. Once all services have started as a part
of this target, the /run/openbmc/obmc-chassis@0-on file is deleted and
the CurrentPowerState is set to On. At this point, we want this new
logic to check if a host firmware boot was occurring prior to reboot and
if so, log an error and put system in Quiesce state to run recovery.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Id477557e2bd0bf0ad9ae3486338562961da153b5
diff --git a/meson.build b/meson.build
index faec1e1..4944c13 100644
--- a/meson.build
+++ b/meson.build
@@ -47,6 +47,9 @@
conf.set_quoted(
'HOST_RUNNING_FILE', '/run/openbmc/host@%d-on')
+conf.set_quoted(
+ 'CHASSIS_ON_FILE', '/run/openbmc/chassis@%d-on')
+
configure_file(output: 'config.h', configuration: conf)
if(get_option('warm-reboot').enabled())