Invoke Delete method to correct service

When PNOR code update is finished, it needs to invoke Delete interface
to xyz.openbmc_project.Software.Version service to delete the temporary
files in /tmp/images.

The code was using the first service from mapper call, and the first
service may be org.open_power.Software.Host.Updater, which is itself,
and this method call results in ELOOP error.

Change the code to pick the correct service to invoke Delete method.

Resovles:  openbmc/openbmc#3311

Tested: Verify the temp files in /tmp/images/<versionID> is deleted
        after PNOR code update, and no ELOOP error occurs.

Change-Id: I855db171a05db66a5e4540d662031c3d219d4a9e
Signed-off-by: Lei YU <mine260309@gmail.com>
1 file changed
tree: 02521c6b1af1760bd4de59dcc560f2479e33abdb
  1. m4/
  2. org/
  3. test/
  4. .clang-format
  5. .gitignore
  6. activation.cpp
  7. activation.hpp
  8. bootstrap.sh
  9. configure.ac
  10. generate-squashfs
  11. generate-ubi
  12. image_verify.cpp
  13. image_verify.hpp
  14. item_updater.cpp
  15. item_updater.hpp
  16. item_updater_main.cpp
  17. LICENSE
  18. MAINTAINERS
  19. Makefile.am
  20. msl_verify.cpp
  21. msl_verify.hpp
  22. msl_verify_main.cpp
  23. README.md
  24. serialize.cpp
  25. serialize.hpp
  26. utils.cpp
  27. utils.hpp
  28. version.cpp
  29. version.hpp
  30. watch.cpp
  31. watch.hpp
README.md

openpower-pnor-code-mgmt

OpenPower PNOR (Processor NOR) Code Management provides a set of host software management applications for OpenPower systems. The host firmware is stored on the PNOR chip. More information can be found at Software Architecture or Host Code Update

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.