Activation: Reset service file booleans after activation

During the activation process, two booleans are used to keep track of
the state of service files that are called as a part of the process.

These booleans are left "true" at the end of the process and the
activated image is still subscribed to systemd signals (to be addressed
in openbmc/openbmc#1843), so the second half of activation runs again
upon the state change of any service file. At that time, we attempt to
set the value of an ActivationProgress parameter that doesn't exist,
crashing the application.

This commit simply resets the booleans to false at the end of
activation, resolving this crash.

Resolves openbmc/openbmc#1984

Change-Id: I6f77778c2d44c10757dd4aca5e846b9e09596957
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
1 file changed
tree: e2cab1cff897484cd37d5bd938408e5ea27b6c02
  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`.