functions: Delete symlink if the target doesn't match

If the symlink does not point to the expected target, delete it so that
it gets recreated to the correct target. This can happen when the BMC is
put on a different system or the system is converted to a different one
without performing a firmware update.

Tested: Manually changed a symlink and verified that it got restored to
the expected target.

Change-Id: Ia9fd49554030bad8d727304e2ff2122107c90476
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed
tree: 1296fec33671b9ba97a1c7272b2a7261715dd7cc
  1. dbus/
  2. mmc/
  3. static/
  4. test/
  5. ubi/
  6. vpnor/
  7. .clang-format
  8. .gitignore
  9. .shellcheck
  10. activation.cpp
  11. activation.hpp
  12. functions.cpp
  13. functions.hpp
  14. generate-tar
  15. generate-ubi
  16. image_verify.cpp
  17. image_verify.hpp
  18. item_updater.cpp
  19. item_updater.hpp
  20. item_updater_main.cpp
  21. LICENSE
  22. meson.build
  23. meson.options
  24. msl_verify.cpp
  25. msl_verify.hpp
  26. msl_verify_main.cpp
  27. op-pnor-msl.service
  28. openpower-pnor-update@.service
  29. org.open_power.Software.Host.Updater.service
  30. OWNERS
  31. README.md
  32. utils.cpp
  33. utils.hpp
  34. version.cpp
  35. version.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. meson build
  2. ninja -C build

To clean the repository run rm -r build.