PNOR: Restore version and activation dbus objects on BMC reboot.

- Read the /media/ dir for active pnor versions. Each active
  version has a pnor.toc inside /media/ which is used to
  recreate the version and activation objects.
- version that matches the version inside
  "/var/lib/phosphor-software-manager/pnor/ro" is considered
  the current version and its priority is set to 0.

Resolves openbmc/openbmc#1846

Change-Id: Ic3d22cc310fdd60d708a73ddc406d3fb0620845c
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
2 files changed
tree: 2236cb3a2a6b82f086085be8fa8e9075aabb4452
  1. m4/
  2. test/
  3. .gitignore
  4. activation.cpp
  5. activation.hpp
  6. bootstrap.sh
  7. configure.ac
  8. generate-squashfs
  9. item_updater.cpp
  10. item_updater.hpp
  11. item_updater_main.cpp
  12. LICENSE
  13. Makefile.am
  14. README.md
  15. version.cpp
  16. version.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`.