commit | 56ec62e25a5279ee7942a472e4fc9427c403688a | [log] [tgz] |
---|---|---|
author | Adriana Kobylak <anoo@us.ibm.com> | Wed Jan 20 10:57:18 2021 -0600 |
committer | Adriana Kobylak <anoo@us.ibm.com> | Wed Jan 27 15:54:47 2021 -0600 |
tree | df85ed4f7ed0f11d2b3f6563cc35bb9e0ce7c494 | |
parent | 8a5ccbb517cf877852caae3acf07fd43586f9a8f [diff] |
reset: Call execute() instead of systemd service The obmc-flash-bmc-setenv@.service file calls a script that runs the fw_setenv command. Call the fw_setenv command directly as an effort to move away from systemd service calls which are async calls and are harder to monitor for completion. The only difference is that the script calls fw_setenv twice because for certain variables such as field mode, the code parses the actual environment file to get the value, and if the system supports a redundant environment, then fw_setenv is needed to be called twice so that the updated value is reflected in both redundant copies and the code parses the value correctly. Factory reset is not a value that is parsed by this code, so a single call is enough. Tested: Verified in witherspoon that the rwreset environment variable was set and factory reset occurred upon reboot. Change-Id: I76691b1c8c78aa9232074d10d435a3e944b1cd9a 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
.