Remove hidden-files in coredump(dir) during boot

It is observed that systemd-coredump has the capability to remove
the older dumps which are having the naming style mentioned in
/proc/sys/kernel/core_pattern, But will not remove any other files
present in the coredump directory.

It can happen that, while processing a dump the BMC Crashes and there
by leaving the partial dumps in the coredump directory and these will
be hidden and will not be removed by systemd-coredump service.These
files can get piled up and the BMC can run into OOM condition.So idea
of this commit is to make sure that , we remove all the temporary
hidden files in the coredump directory during the next BMC boot.

- Made a rule and placed it in /usr/lib/tmpfiles.d/*.conf which will
  be used by systemd-tmpfiles to remove the hidden files in coredump
  directory during boot.

Partially Resolves openbmc/openbmc#2826

Change-Id: I50c89ef024e3be986bbea3b96ce9d890c496979c
Signed-off-by: manojeda <manojeda@in.ibm.com>
2 files changed
tree: 589ca8960bf245644425f1053a5e01ab21c98ae5
  1. aspeed-layer/
  2. classes/
  3. conf/
  4. nuvoton-layer/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-phosphor/
  10. recipes-support/
  11. recipes-textproc/
  12. COPYING.apache-2.0
  13. COPYING.MIT
  14. LICENSE
  15. MAINTAINERS
  16. README.md
  17. recipes.txt
README.md

OpenBMC

meta-phosphor is the OpenBMC layer. This layer should be included for all OpenBMC systems. The OpenBMC layer contains content which is shared between all OpenBMC systems.