summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-phosphor/chassis
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2021-02-12 22:31:27 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2021-02-25 15:17:33 +0300
commit0a392ffe1c98e5f2c0fc951af13e39728c741925 (patch)
treef436f4e23a9f99120995585417daedc05df10373 /meta-phosphor/recipes-phosphor/chassis
parent803ae91f5f6ad2cda204294b1d5b83a363959038 (diff)
downloadopenbmc-0a392ffe1c98e5f2c0fc951af13e39728c741925.tar.xz
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
Diffstat (limited to 'meta-phosphor/recipes-phosphor/chassis')
-rw-r--r--meta-phosphor/recipes-phosphor/chassis/obmc-op-control-power/op-wait-power-off@.service1
1 files changed, 1 insertions, 0 deletions
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 11373618b..c97b67bac 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 @@ SyslogIdentifier=pgood_wait
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