From 139f77113cec007036b7ec3361a56fbc97ad86c1 Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Sat, 21 Oct 2023 14:30:23 -0400 Subject: [PATCH] ash_functions: make DEBUG call pass multiline messages one at a time to /tmp/debug.log and kmsg --- initrd/etc/ash_functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/initrd/etc/ash_functions b/initrd/etc/ash_functions index 768d4627e..f819af06c 100644 --- a/initrd/etc/ash_functions +++ b/initrd/etc/ash_functions @@ -24,7 +24,9 @@ warn() { DEBUG() { if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then - echo "DEBUG: $*" | tee -a /tmp/debug.log /dev/kmsg > /dev/null; + echo "DEBUG: $*" | while read line; do + echo "$line" | tee -a /tmp/debug.log /dev/kmsg >/dev/null + done fi }