commit | e56bf8785f0831e2210371296b70b6085f36f56e | [log] [tgz] |
---|---|---|
author | Lei YU <yulei.sh@bytedance.com> | Tue Feb 22 18:40:37 2022 +0800 |
committer | Lei YU <yulei.sh@bytedance.com> | Mon Mar 14 13:44:54 2022 +0800 |
tree | 0d55de354660046d0583bf9f92c9c6f0a6578734 | |
parent | d474d9cde4b630172afb92b43b270e1f3e7bd5ea [diff] |
dual-image: Do not erase image if os-release is not found The code will erase an image if the os-release is not found. For dual image, the secondary flash may be empty or contains invalid data, e.g. in factory or lab, so it should just ignore such case instead of erasing the image. Without the change, when it tries to erase the image, it crashes in erase() because the version ID is not available and the code was accessing the invalidated iterator. Tested: Verify the crash is fixed in QEMU when the secondary image is empty. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I7a1a8da15c31045fc7d51416f6ba0875349067d2
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
.