Fix dreport os-release script point to a symbolic link

The os-release file in the dump points to a symbolic link
rather than the actual release details.

As "cp -r" command is used to copy the contents of a symbolic
link file, it copies the link rather than the actual file.

Modified to use cp command to copy the contents of the file

Tested:
before fix
root@witherspoon:/tmp# mkdir test1
root@witherspoon:/tmp# cp -r /etc/os-release test1/
root@witherspoon:/tmp# ls -la test1/
drwxr-xr-x    2 root     root            60 Jun  6 12:27 .
drwxrwxrwt   13 root     root           320 Jun  6 12:26 ..
lrwxrwxrwx    1 root     root            21 Jun  6 12:27 os-release -> ../usr/lib/os-release

after fix
root@witherspoon:/tmp# mkdir test2
root@witherspoon:/tmp# cp /etc/os-release test2/
root@witherspoon:/tmp# ls -la test2/
-rw-r--r--    1 root     root           295 Jun  6 12:27 os-release

Change-Id: I6980ffa40b925fb02be0bf53704d17ebc7995af0
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
2 files changed
tree: 8e67df585b56603ce948aa73871a1bac165117e9
  1. tools/
  2. xyz/
  3. .clang-format
  4. .gitignore
  5. bootstrap.sh
  6. configure.ac
  7. core_manager.cpp
  8. core_manager.hpp
  9. core_manager_main.cpp
  10. dump_entry.cpp
  11. dump_entry.hpp
  12. dump_internal.hpp
  13. dump_manager.cpp
  14. dump_manager.hpp
  15. dump_manager_main.cpp
  16. dump_serialize.cpp
  17. dump_serialize.hpp
  18. dump_utils.hpp
  19. elog_watch.cpp
  20. elog_watch.hpp
  21. errors_map.mako.hpp
  22. errors_map_gen.py
  23. example_errors_watch.yaml
  24. ffdc
  25. LICENSE
  26. MAINTAINERS
  27. Makefile.am
  28. README.md
  29. watch.cpp
  30. watch.hpp
README.md

phosphor-debug-collector

Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.

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`.