Activation: Wait for service files to complete

The Activation process calls a pair of service files upon which
later steps are dependent. These units take some time to run, so
the later steps would fail. This commit subscribes the Activation
object to systemd signals and puts the later steps on hold until
the service files have finished running.

Additionally, the service file used to move the squashfs to flash
is moved into the activation process, so not all images that the
user downloads are saved to flash.

Resolves openbmc/openbmc#1716

Change-Id: Id3ecf6334e069f69c355f0c0e8901a93fd95d496
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
3 files changed
tree: e7c2b12d3b1c6cc1cfb75069d982031e0755f587
  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.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`.