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