xref: /openbmc/openpower-debug-collector/dump/tools/bmcdump/plugins/hostboot (revision a83122bd9bd5cd6d151afe49c81957fdc2f11e8b)
1#!/usr/bin/env bash
2#
3# config: 234 60
4# @brief: Collect host firmware preserved partitions to BMC dump
5#
6
7# shellcheck disable=SC1091
8. "$DREPORT_INCLUDE"/functions
9
10#HBEL=Hostboot Error log
11#HBD_RW=Hostboot preserved attributes
12#EECACHE=Hostboot VPD EECACHE
13partitions=("HBEL" "HBD_RW" "EECACHE")
14for i in "${partitions[@]}"; do
15    filename="/var/lib/phosphor-software-manager/hostfw/running/$i"
16    if [ -f "$filename" ]; then
17        add_copy_file "$filename" "$partition"
18    fi
19done
20