diff options
author | Matt Spinler <spinler@us.ibm.com> | 2020-07-28 00:30:21 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-08-04 03:52:24 +0300 |
commit | 06f97e49023ce54c7cd42a44ebe286d887a8e1d8 (patch) | |
tree | 6afa88ba47c76a69664ed8788824f2657131fcf6 | |
parent | 9ced8f140c6e7f63982208777c38f582b38c10bc (diff) | |
download | openbmc-06f97e49023ce54c7cd42a44ebe286d887a8e1d8.tar.xz |
meta-ibm: collect PEL files during a dump
This collects all of the PEL files on user and elog dumps.
They will show up in a subdirectory named 'logs' in the dump.
(From meta-ibm rev: 1a247b7c27ec3021bf7396874d34844ca2e6b033)
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ia23a2fb72acfc1e4473d3c47ad78e34b37529f34
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
-rw-r--r-- | meta-ibm/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/pels | 14 | ||||
-rw-r--r-- | meta-ibm/recipes-phosphor/dump/phosphor-debug-collector_%.bbappend | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/meta-ibm/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/pels b/meta-ibm/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/pels new file mode 100644 index 000000000..2ad4ab0ea --- /dev/null +++ b/meta-ibm/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/pels @@ -0,0 +1,14 @@ +#!/bin/bash +# +# config: 23 20 +# +# 23 = User dump(2), elog dump(3) +# 20 = priority + +# @brief: Collect the PEL files + +. $DREPORT_INCLUDE/functions + +dir="/var/lib/phosphor-logging/extensions/pels/logs" +desc="PEL Files" +add_copy_file "$dir" "$desc" diff --git a/meta-ibm/recipes-phosphor/dump/phosphor-debug-collector_%.bbappend b/meta-ibm/recipes-phosphor/dump/phosphor-debug-collector_%.bbappend index 19dcdca61..91ef83e55 100644 --- a/meta-ibm/recipes-phosphor/dump/phosphor-debug-collector_%.bbappend +++ b/meta-ibm/recipes-phosphor/dump/phosphor-debug-collector_%.bbappend @@ -4,10 +4,12 @@ PACKAGECONFIG_append_rainier = " host-dump-offload-pldm" PACKAGECONFIG_append_witherspoon-tacoma = " host-dump-offload-pldm" SRC_URI += "file://plugins.d/ibm_elogall" +SRC_URI += "file://plugins.d/pels" install_ibm_plugins() { install -m 0755 ${WORKDIR}/plugins.d/ibm_elogall ${D}${dreport_plugin_dir} + install -m 0755 ${WORKDIR}/plugins.d/pels ${D}${dreport_plugin_dir} } @@ -17,6 +19,9 @@ python link_ibm_plugins() { workdir = d.getVar('WORKDIR', True) script = os.path.join(workdir, 'plugins.d', 'ibm_elogall') install_dreport_user_script(script, d) + + script = os.path.join(workdir, 'plugins.d', 'pels') + install_dreport_user_script(script, d) } do_install[postfuncs] += "install_ibm_plugins" |