log-collector: cmd for collecting logs at pre-install stage

This will dump logs and kdumps, and generate a tarball

Tested:
>log_collector > mytar.tar.gz
> tar -xvzf mytar.tar.gz
tmp/tmp.PyYXS0/journal.log
mnt/luks-mmcblk0_fs/kdump/kcore.3
run/log/kdump/kcore.1
run/log/kdump/kcore.2

Google-Bug-Id: 317372429
Change-Id: I71410affa0e972f2c864963270e055399e81739a
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
(cherry picked from commit 7a62cd625f663ea95ec6c4d6b336ef0f67ac9ffa)
2 files changed
tree: a5ab7a3f6953daa9acea101fb4e3fb4b28e0a69a
  1. conf/
  2. dynamic-layers/
  3. recipes-bsp/
  4. recipes-connectivity/
  5. recipes-core/
  6. recipes-devtools/
  7. recipes-extended/
  8. recipes-google/
  9. recipes-kernel/
  10. recipes-phosphor/
  11. LICENSE
  12. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.