| commit | 295fce098d7006f8746107dc62103479bc315641 | [log] [tgz] |
|---|---|---|
| author | Adriana Kobylak <anoo@us.ibm.com> | Mon Jun 13 15:11:49 2022 +0000 |
| committer | Adriana Kobylak <anoo@us.ibm.com> | Mon Jun 13 15:53:16 2022 +0000 |
| tree | 659a2d73a3a81be7c15d163e2dcaf15a4d89ed82 | |
| parent | c8ee449799f8d31814e1683f29bf4e40ce22774b [diff] |
mmc: reset: Add sleep before returning
Add a sleep call to the reset call to allow service files and reset
operations to complete, so that the user can safely reboot the BMC or
power on the system until after the reset call returns.
Tested: Verified the curl command returned after 5s. The BMC takes about
3s to start the service files.
$ date; curl -k -H "X-Auth-Token: $token" -X POST
https://${bmc}/redfish/v1/Systems/system/Bios/Actions/Bios.ResetBios -d
'{"data":[]}'; date
Mon 13 Jun 2022 03:50:08 PM UTC
Mon 13 Jun 2022 03:50:13 PM UTC
Jun 13 15:35:20 p10bmc phosphor-log-manager[343]: Deleting all log
entries
...
Jun 13 15:35:23 p10bmc systemd[1]: Started OpenPOWER Host
HardwareIsolation.
Change-Id: Ic36cd2f9de60d8f72dd75cd63d78189349210f05
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
OpenPower PNOR (Processor NOR) Code Management provides a set of host software management applications for OpenPower systems. The host firmware is stored on the PNOR chip. More information can be found at Software Architecture or Host Code Update
To build this package, do the following steps:
meson buildninja -C buildTo clean the repository run rm -r build.