mpreboot: ensure cleared on power off
Recently saw an issue where a system was doing an mpreboot but hit a
processor checkstop as soon as the reboot of the host started. This
caused a full power cycle of the chassis and a normal reboot of the
system. In this scenario, the /run/openbmc/mpreboot@0 file was not
cleared so the normal boot of the system went very haywire as certain
required services do not start when this file is present.
Currently this file is only cleared once we get to the
op-continue-mpreboot@.service. In the scenario listed above, we never
make it to that service, hence the file is never cleared.
This commit ensure anytime the system is having chassis power removed,
the mpreboot file gets cleared.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I9ec2507d56f8d31b034d18ae03f3867e08d1f152
diff --git a/meta-phosphor/recipes-phosphor/chassis/obmc-op-control-power/op-wait-power-off@.service b/meta-phosphor/recipes-phosphor/chassis/obmc-op-control-power/op-wait-power-off@.service
index 1137361..c97b67b 100644
--- a/meta-phosphor/recipes-phosphor/chassis/obmc-op-control-power/op-wait-power-off@.service
+++ b/meta-phosphor/recipes-phosphor/chassis/obmc-op-control-power/op-wait-power-off@.service
@@ -17,6 +17,7 @@
ExecStart=/bin/rm -f /run/openbmc/chassis@%i-on
ExecStart=/bin/rm -f /run/openbmc/host@%i-on
ExecStart=/bin/rm -f /run/openbmc/host@%i-request
+ExecStart=/bin/rm -f /run/openbmc/mpreboot@%i
[Install]
WantedBy=obmc-host-stop@%i.target