utilities/tools/collector/debian-scripts/collect_dpkg.sh
Al Bailey 0592342156 Debian: Update collect tool to gather ostree info
- Removed unused variables from collect_dc.sh
 - Removed references to dpkg from collect_sysinv.sh
   as well as the rpm.info file.
 - Added collect_dpkg.sh to gather debian package info for
   all node types to dpkg.info.
 - Added collect_ostree.sh to gather ostree log info for
   sysroot and any feed directories to ostree.info.

Cleaned up the width of some collect -v formatting.

Test Plan:
  Build / Install / Bootstrap / Unlock Debian AIO-SX
  Run collect on AIO-SX and verify the two new files
ostree.info and dpkg.info are present, and rpm.info is not.

Story: 2009969
Task: 45325
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I48ffd39a945a82252c43786aa7d2c6e3ddc7d7ae
2022-05-11 20:00:12 +00:00

25 lines
615 B
Bash

#! /bin/bash
#
# Copyright (c) 2022 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
# Loads Up Utilities and Commands Variables
source /usr/local/sbin/collect_parms
source /usr/local/sbin/collect_utils
SERVICE="dpkg"
LOGFILE="${extradir}/${SERVICE}.info"
###############################################################################
# DPKG Info (.deb debian packages)
###############################################################################
echo "${hostname}: DPKG Info .........: ${LOGFILE}"
delimiter ${LOGFILE} "dpkg -l"
dpkg -l >> ${LOGFILE} 2>>${COLLECT_ERROR_LOG}
exit 0