Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
58c26e3f27-Sep-2019 Lei YU <mine260309@gmail.com>

Scan directories that store PSU images on start

When the service starts, scan the directories that store PSU images,
including the built-in images, and the saved images during PSU update.

When the

Scan directories that store PSU images on start

When the service starts, scan the directories that store PSU images,
including the built-in images, and the saved images during PSU update.

When the scanned image is different than the running images, create
activation/version object;
When the scanned image is the same as the running images, update the
version object's path to indicate the PSU image path, so it could be
used for future update in case a PSU is replaced with a different
software.

Tested: On Witherspoon, fake create a dummy PSU image with a different
version than running PSU, verify a new object is created on
restart;
fake creating a dummy PSU image with a same version as a running
PSU, verify no new object is created, but the "Path" property is
set to the PSU image directory.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I860b978250a718eb82d948a1c88bd8f41bb2b2e3

show more ...


/openbmc/phosphor-psu-code-mgmt/.clang-format
/openbmc/phosphor-psu-code-mgmt/.gitignore
/openbmc/phosphor-psu-code-mgmt/LICENSE
/openbmc/phosphor-psu-code-mgmt/MAINTAINERS
/openbmc/phosphor-psu-code-mgmt/README.md
/openbmc/phosphor-psu-code-mgmt/meson.build
/openbmc/phosphor-psu-code-mgmt/meson_options.txt
/openbmc/phosphor-psu-code-mgmt/service/xyz.openbmc_project.Software.Psu.Updater.service
/openbmc/phosphor-psu-code-mgmt/src/activation.cpp
/openbmc/phosphor-psu-code-mgmt/src/activation.hpp
/openbmc/phosphor-psu-code-mgmt/src/association_interface.hpp
/openbmc/phosphor-psu-code-mgmt/src/item_updater.cpp
/openbmc/phosphor-psu-code-mgmt/src/item_updater.hpp
/openbmc/phosphor-psu-code-mgmt/src/main.cpp
/openbmc/phosphor-psu-code-mgmt/src/meson.build
/openbmc/phosphor-psu-code-mgmt/src/types.hpp
/openbmc/phosphor-psu-code-mgmt/src/utils.cpp
/openbmc/phosphor-psu-code-mgmt/src/utils.hpp
/openbmc/phosphor-psu-code-mgmt/src/version.cpp
/openbmc/phosphor-psu-code-mgmt/src/version.hpp
/openbmc/phosphor-psu-code-mgmt/test/meson.build
/openbmc/phosphor-psu-code-mgmt/test/mocked_association_interface.hpp
/openbmc/phosphor-psu-code-mgmt/test/mocked_utils.hpp
/openbmc/phosphor-psu-code-mgmt/test/psu-images-one-valid-one-invalid/model-1/MANIFEST
MANIFEST
/openbmc/phosphor-psu-code-mgmt/test/psu-images-valid-version0/model-3/MANIFEST
/openbmc/phosphor-psu-code-mgmt/test/test_activation.cpp
/openbmc/phosphor-psu-code-mgmt/test/test_item_updater.cpp
/openbmc/phosphor-psu-code-mgmt/test/test_utils.cpp
/openbmc/phosphor-psu-code-mgmt/test/test_version.cpp
/openbmc/phosphor-psu-code-mgmt/vendor-example/get_version.cpp
/openbmc/phosphor-psu-code-mgmt/vendor-example/meson.build
/openbmc/phosphor-psu-code-mgmt/vendor-example/psu-update@.service