From 702cbd20aa6a6801902cb3d7f87de94edbfc677e Mon Sep 17 00:00:00 2001 From: Diederik de Haas Date: Fri, 16 Jul 2021 23:08:17 +0200 Subject: [PATCH 3/3] Print 'fdisk -l' output and memory info in 'fail' function. Output of 'fdisk -l' should give some info on the SDcard. Forgot to output memory info in probably the most important place, namely when thing go wrong, so add it in 'fail' function. Signed-off-by: Diederik de Haas --- scripts/etc/init.d/rcS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/etc/init.d/rcS b/scripts/etc/init.d/rcS index fad722c..280b35d 100755 --- a/scripts/etc/init.d/rcS +++ b/scripts/etc/init.d/rcS @@ -103,6 +103,7 @@ fail() { log_msg log_msg "Oh noes, something went wrong!" + print_mem_info log_msg "You have 10 seconds to hit ENTER to get a shell..." # copy logfile to /boot/ partition to preserve it. @@ -383,6 +384,9 @@ log_msg "=================================================" log_msg "Output of 'busybox cat /proc/mounts':" busybox cat /proc/mounts +log_msg "" +log_msg "Output of 'fdisk -l':" +fdisk -l print_mem_info -- 2.32.0