Add checks for currently running host image before erasing

- Check for Host state and the Active image. If the image we're trying to
erase matches the Active image and the host is running, fail to erase the
image.

Resolves openbmc/openbmc#1986

Change-Id: Ia9488c9ede585494fa4449ef0e83af35d50d03f8
Signed-off-by: Eddie James <eajames@us.ibm.com>
2 files changed
tree: e5e4858516f1fb774bb974061126c512ccd224f0
  1. m4/
  2. org/
  3. test/
  4. .gitignore
  5. activation.cpp
  6. activation.hpp
  7. bootstrap.sh
  8. configure.ac
  9. generate-squashfs
  10. item_updater.cpp
  11. item_updater.hpp
  12. item_updater_main.cpp
  13. LICENSE
  14. Makefile.am
  15. README.md
  16. serialize.cpp
  17. serialize.hpp
  18. version.cpp
  19. 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`.