commit | 60f5ccfd5ab0fc8cedc3a2bf5f5adcab77318b7d | [log] [tgz] |
---|---|---|
author | Gunnar Mills <gmills@us.ibm.com> | Thu May 28 12:26:39 2020 -0500 |
committer | Gunnar Mills <gmills@us.ibm.com> | Mon Jun 01 12:12:22 2020 -0500 |
tree | b245d262de74799f7af3b3903ac61be996382e03 | |
parent | c98d912ec7de0b0d8bd7ad5d47539c858582ea0f [diff] |
Factory Reset: Wait for env variables A call to FactoryReset followed by an immediate reboot does not work. Add a 3 second sleep to allow the env variables to complete. This sleep is already in IPMI and was going to be added to bmcweb as part of Redfish Factory Reset support, instead add here and remove from IPMI. https://github.com/openbmc/openpower-host-ipmi-oem/blob/61950109c770fc65f7b5539974487a5a05c54bb5/oemhandler.cpp#L355 There's still a chance 3 secs is not enough if the BMC CPU usage is high and processes are running slow, but should be very uncommon. Could subscribe to systemd signals but this adds more complexity and in the past, phosphor-bmc-code-mgmt had problems with this on the Priority value. This is probably the best solution for now. Tested: Redfish factory reset works. Change-Id: Ibd9c5ca87e8fcd80b558ec4e6a9486efef19421b Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.