commit | e8945ea6b76037727a2588bc9366bba56b214bc9 | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Sun Sep 29 17:25:31 2019 +0800 |
committer | Lei YU <mine260309@gmail.com> | Tue Oct 29 11:24:04 2019 +0800 |
tree | 62ba5b9dd320bcfc66527b04710d1965fceab3e4 | |
parent | 58c26e3fcb6829fac196b267da535fef274e9fb2 [diff] |
Activation: support updating PSU from stored image The previous code assume the image to update is from IMG_DIR. Now it needs to update PSU from pre-built or stored images. This commit adds the support, by constructing the systemd unit based on Activation's Path property instead of IMG_DIR. Tested: Verify on Witherspoon that it is able to activate a stored image. Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: I0936bb921b22c7f67aee9689e3695e6b21703a29
phosphor-psu-code-mgmt is a service to provide management for PSU code, including:
meson build/ && ninja -C build
meson -Doe-sdk=enabled -Dtests=enabled build/ ninja -C build/ test # Meson skips running the case due to it thinks it's cross compiling # Manually run the tests for t in `find build/test/ -maxdepth 1 -name "test_*"`; do ./$t || break ; done