From 678d4d189d90253c09e00ee92a8001e47eb97a3b Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Tue, 15 Sep 2020 11:54:18 +0200 Subject: [PATCH] runtime: add podman configuration to data collection script Be more verbose about podman configuration in the output of the data collection script: get the system configuration as seen by podman and dump the configuration files when present. Fixes: #243 Signed-off-by: Francesco Giudici --- src/runtime/data/kata-collect-data.sh.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/runtime/data/kata-collect-data.sh.in b/src/runtime/data/kata-collect-data.sh.in index 9654ad4aa6..4498a85868 100644 --- a/src/runtime/data/kata-collect-data.sh.in +++ b/src/runtime/data/kata-collect-data.sh.in @@ -466,6 +466,17 @@ show_container_mgr_details() subheading "$title" run_cmd_and_show_quoted_output "" "podman --version" + run_cmd_and_show_quoted_output "" "podman system info" + + local cmd file + + for file in {/etc,/usr/share}/containers/*.{conf,json}; do + if [ -e "$file" ]; then + cmd="cat $file" + run_cmd_and_show_quoted_output "" "$cmd" + fi + done + end_section fi