Fix for priority restoration from environment variable

This fix addresses a defect in the BMC updater. When we restore the BMC
version priority after a reboot, we pull it from a list of environment
variables. Initially, we did so just by looking for the version ID -
since that implementation, however, an additional environment variable
has been added that uses the version ID. This caused the priority to
sometimes be restored incorrectly, depending on the order of the
variables within the file.

In order to fix this defect, we search instead for "[versionID]=", which
is more specific.

Resolves openbmc/openbmc#2721

Change-Id: I2fd2e04c5268a63a8760ad4e3af28144583ea2dc
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
1 file changed
tree: 8150263d9c338a681710cefca2f1da39d32df443
  1. org/
  2. test/
  3. xyz/
  4. .gitignore
  5. activation.cpp
  6. activation.hpp
  7. bootstrap.sh
  8. configure.ac
  9. download_manager.cpp
  10. download_manager.hpp
  11. download_manager_main.cpp
  12. elog-errors.hpp
  13. image_manager.cpp
  14. image_manager.hpp
  15. image_manager_main.cpp
  16. item_updater.cpp
  17. item_updater.hpp
  18. item_updater_main.cpp
  19. LICENSE
  20. Makefile.am
  21. README.md
  22. serialize.cpp
  23. serialize.hpp
  24. version.cpp
  25. version.hpp
  26. watch.cpp
  27. watch.hpp
README.md

phosphor-bmc-code-mgmt

Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.