commit | 341243513d6da6e9d3ddf886c0d22029fad748a9 | [log] [tgz] |
---|---|---|
author | Adriana Kobylak <anoo@us.ibm.com> | Fri May 22 09:40:40 2020 -0500 |
committer | Adriana Kobylak <anoo@linux.ibm.com> | Tue Jul 14 14:09:57 2020 +0000 |
tree | 072e6fab3214044bc70f2291af5c13422c24c8d1 | |
parent | 70f5bc04d82ac9c236f13e825db31e7c96aa7f11 [diff] |
mmc: Set updated version to primary Once the update is successful, mark the version as primary so that it boots from the updated version upon BMC reboot. Add a sleep to wait for the service file to complete setting the primary version. Otherwise, the BMC could mark a Delete or Priority value change as complete and the service is not done yet, and if the BMC is rebooted it could try to boot from a non-existent version. As backgroung, reference issue openbmc/openbmc#2857 that attempted to create a 'wait for service' function but was not successful. This could be investigated further at a later time, which would benefit other functions like Factory Reset that are also using sleep as a workaround to wait for systemd service files. Tested: Verified the version was set to primary during code update and delete, and that 3s passed (service file finished in about 1s) before the delete/update continued. Change-Id: I4f9afdb020d8cc7c18cfdafe468dbff2dc8046c1 Signed-off-by: Adriana Kobylak <anoo@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:
meson build
ninja -C build
To clean the repository run rm -r build
.