commit | 6d95c456160406c95a082a07ee47e81d70ccc714 | [log] [tgz] |
---|---|---|
author | Andrew Geissler <geissonator@yahoo.com> | Fri Jun 05 14:43:08 2020 -0500 |
committer | Andrew Geissler <geissonator@yahoo.com> | Mon Jun 08 15:08:00 2020 -0500 |
tree | be822131d8e57e88bf20bc069a26ba4dcc8a5222 | |
parent | 883a59d45f1b3e2277c3d77c7f853059b104aba4 [diff] |
clear host-on file when host stopped This file is currently removed in the chassis poweroff target within the op-wait-power-off service. This was fine until our recent introduction of warm resets. Here's the scenario that causes trouble: - Reboot BMC with host up, /run/openbmc/host@0-on is created to indicate the host is already on and the services involved in booting the host should do nothing. - Now issue a warm reboot of the host. Because the chassis power is not cycled on a warm reboot, the service is not run which clears the host@0-on file. This then leads to the service responsible for starting the host not running. The solution is to clear this file when the host is stopped. The removal of the file should stay within chassis poweroff target to handle corner cases where only a hard power off is done to the system. Tested: Built image with fix and verified that test scenario now works and that file was cleared as expected as a part of the warm reboot. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I6383d96f7a6be32ca19b998d9cd1cce81a307412
Contains procedures that interact with the OpenPower nest chipset.
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To build with phal feature: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} --enable-phal --enable-openfsi 3. make To clean the repository run `./bootstrap.sh clean`.