Code update flow: Set properties and load squashfs on object creation

Set the Activation properties during the code update flow and
do some checkings:
  Only activate an image that has a value of  Ready or Failed.
  Only validate an image if a corresponding object doesn't exist.
  Move the activating of the partitions from the RequestedActivation
to the Activation function to have it in a central location, and
set the Activation to Activating during that process.

Load the squashfs image when the Activation object is created
since the image can be deleted from the BMC and would not be
able to be activated when requested.

Change-Id: I7eba400ca29461e2f41a8d8889a9825572b98344
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2 files changed
tree: 8dbef444b17a34b9c044539eb9e552e34093c963
  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
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`.