mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dbginfo.sh: fix missing syslog for step create_package
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 commitb7807d0195("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:b7807d0195("dbginfo.sh: Add KVM commands and rework data collection") Signed-off-by: Steffen Maier <maier@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
1bbd34e500
commit
f6a7da141c
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user