commit | c31943e11b3e0fc440f34afcdf4498fe2bee9fff | [log] [tgz] |
---|---|---|
author | Adriana Kobylak <anoo@us.ibm.com> | Wed Jul 29 12:41:59 2020 -0500 |
committer | Adriana Kobylak <anoo@us.ibm.com> | Wed Jul 29 13:30:42 2020 -0500 |
tree | 04c2e8525488a1d4a6115061bf1106f7fa31af1f | |
parent | 8e9ccfe7362d5fa6a61bb4881a2f0384ca424e84 [diff] |
mmc: Remove: Sleep to allow service to finish There's not currently a good solution for waiting for systemd service files before returning from a function. The way to achieve this is to add a sleep before returning. Need to add a sleep for the mmc remove function to allow the device to be erased before the update, otherwise the delete and update may run at the same time causing corruption. This race condition is not seeing in ubi because the update creates a new volume for the image, while in the background the old volume is being erased, although this could still cause issues if space is tight and the delete is not finished by the time the new image is written, but this issue hasn't been seen so focusing on mmc only for this commit. Tested: Verified no corruption was seen on the tacoma system where the issue was reported. Change-Id: I89eeb97b357cc6a0eb0bf01aa9ac4147cab6168a 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
.