From f8910caa597ffefd85771d4f4006e7407a31a7e1 Mon Sep 17 00:00:00 2001 From: Joern Siglen Date: Fri, 30 Jun 2023 15:40:17 +0200 Subject: [PATCH] dbginfo.sh: include the dbginfo.sh used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit include the version of dbginfo.sh just used for data collection into our tar file - so we have the used version in case of data collection problems. Reviewed-by: Michael Storzer Signed-off-by: Joern Siglen Signed-off-by: Jan Höppner --- scripts/dbginfo.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dbginfo.sh b/scripts/dbginfo.sh index e9e1e461..fb5a4d78 100755 --- a/scripts/dbginfo.sh +++ b/scripts/dbginfo.sh @@ -1316,6 +1316,8 @@ create_package() { local rc_tar pr_syslog_stdout ${step_num} "Finalizing: Creating archive with collected data" cd "${WORKDIR_BASE}" + # get a copy of the script used + cp -p $0 "${WORKDIR_CURRENT}" touch "${WORKARCHIVE}" chmod 0600 "${WORKARCHIVE}"