From f6a7da141c15a6e9d03f225c3d24f5946b4bad37 Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Thu, 11 Nov 2021 18:08:54 +0100 Subject: [PATCH] dbginfo.sh: fix missing syslog for step create_package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the fix, readers of syslog / systemd-journal can erroneously think that dbginfo.sh was incomplete because the last logged step is "17 of 18". The fix also makes the missing line appear in dbginfo.log inside the generated DBGINFO....tgz. s390-tools v2.17.0 commit b7807d019514 ("dbginfo.sh: Add KVM commands and rework data collection") turned create_package into a numbered step. Snippet of terminal output: ... 17 of 18: Postprocessing 18 of 18: Finalizing: Creating archive with collected data Collected data was saved to: >> /tmp/DBGINFO-....tgz << Please review all collected data before sending to your service organization. Syslog before: ... dbginfo.sh[...]: 17 of 18: Postprocessing dbginfo.sh[...]: Data collection completed Syslog after: ... dbginfo.sh[...]: 17 of 18: Postprocessing dbginfo.sh[...]: 18 of 18: Finalizing: Creating archive with collected data dbginfo.sh[...]: Data collection completed Fixes: b7807d019514 ("dbginfo.sh: Add KVM commands and rework data collection") Signed-off-by: Steffen Maier Signed-off-by: Jan Höppner --- scripts/dbginfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dbginfo.sh b/scripts/dbginfo.sh index 62cd6af7..909e99b4 100755 --- a/scripts/dbginfo.sh +++ b/scripts/dbginfo.sh @@ -1154,7 +1154,7 @@ environment_setup() { # create gzip-ped tar file create_package() { local rc_tar - pr_stdout "${step_num} Finalizing: Creating archive with collected data" + pr_syslog_stdout "${step_num} Finalizing: Creating archive with collected data" cd "${WORKDIR_BASE}" touch "${WORKARCHIVE}"