From 5ee769b06c9e80863b34168ec96adfdacbde6f94 Mon Sep 17 00:00:00 2001 From: Steffen Ritter Date: Mon, 22 Jan 2024 14:52:53 +0100 Subject: [debug-report-bwlp] Include special bwlp log directory Sometimes we need more debug output, so we extend our scripts with additional logging information. But where to store such logs without always overwriting 'debug_report' binary or hacking log file names to somethin we already include? So we include a special '/tmp/bwlp_debug_logs' directory where we could store and report e.g. 'set -x' output from our scripts. --- core/modules/debug-report-bwlp/data/opt/openslx/bin/debug_report | 1 + core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/debug-report-bwlp/data/opt/openslx/bin/debug_report b/core/modules/debug-report-bwlp/data/opt/openslx/bin/debug_report index 27156f7e..4f676f5c 100755 --- a/core/modules/debug-report-bwlp/data/opt/openslx/bin/debug_report +++ b/core/modules/debug-report-bwlp/data/opt/openslx/bin/debug_report @@ -136,6 +136,7 @@ cp -r /var/log/Xorg.0.lo* \ cp /proc/{cpu,mem}info /proc/{mtrr,interrupts} /proc/driver/nvidia/{params,registry} static/proc/ 2> /dev/null cp /run/openslx/*log* /run/openslx/dmsetup.state static/ 2> /dev/null cp -r /opt/openslx/.mltk static/ 2> /dev/null +cp -r /tmp/bwlp_debug_logs static/ 2> /dev/null echo -n "." for tool in "${TOOLS[@]}"; do diff --git a/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode b/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode index f131d257..d88d2a3a 100755 --- a/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode +++ b/core/modules/safe-mode/data/opt/openslx/scripts/systemd-safe_mode @@ -55,7 +55,7 @@ EOF ssh_banner() { # Visual: ssh banner - echo "+ - - - - PRÜFUNGSMODUS AKTIV - - - - +" >> "/etc/issue.net" + echo "+ - - - PRÜFUNGSMODUS AKTIV - - - +" >> "/etc/issue.net" echo "++++++++++++++++++++++++++++++++++++++" >> "/etc/issue.net" } -- cgit v1.2.3-55-g7522