Host updater: Back up version priority in environment variables

This enhancement to the host updater adds an extra location for storing
redundancy priority values for host software versions. Priority values
are stored as environment variables in the format
pnor-[versionId]=[priority]. This addresses any scenario in which the
Cereal files storing these priority values are deleted, including (but
not limited to) a BMC factory reset.

Additionally, priority files are no longer removed during a host factory
reset. Removing these files makes restoration of the priority on reboot
impossible.

Resolves openbmc/openbmc#2666

Change-Id: I6b528e75785d48bbb5c8782e879b061934ad9432
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
2 files changed
tree: e4264c34f02e30cf3aae911685971d69d6db662a
  1. m4/
  2. org/
  3. test/
  4. .gitignore
  5. activation.cpp
  6. activation.hpp
  7. bootstrap.sh
  8. configure.ac
  9. generate-squashfs
  10. generate-ubi
  11. item_updater.cpp
  12. item_updater.hpp
  13. item_updater_main.cpp
  14. LICENSE
  15. Makefile.am
  16. README.md
  17. serialize.cpp
  18. serialize.hpp
  19. version.cpp
  20. version.hpp
  21. watch.cpp
  22. watch.hpp
README.md

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`.