From 0a392ffe1c98e5f2c0fc951af13e39728c741925 Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Fri, 12 Feb 2021 13:31:27 -0600 Subject: 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 Change-Id: I9ec2507d56f8d31b034d18ae03f3867e08d1f152 --- .../chassis/obmc-op-control-power/op-wait-power-off@.service | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-phosphor/recipes-phosphor') 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 -- cgit v1.2.3