From 44ed58ec54e9d5520787321ae1c77f6e7405e340 Mon Sep 17 00:00:00 2001 From: Diederik de Haas Date: Sat, 17 Jul 2021 23:05:20 +0200 Subject: [PATCH] Print various memory/disk info in 'fail' function. This information hopefully helps to figure out why something went wrong. Signed-off-by: Diederik de Haas --- scripts/etc/init.d/rcS | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/etc/init.d/rcS b/scripts/etc/init.d/rcS index d5216158..18a298c5 100755 --- a/scripts/etc/init.d/rcS +++ b/scripts/etc/init.d/rcS @@ -91,6 +91,16 @@ fail() { log_msg log_msg "Oh noes, something went wrong!" + log_msg + log_msg "Output of 'busybox free -k':" + busybox free -k + log_msg + log_msg "Output of 'busybox df -aT':" + busybox df -aT + log_msg + log_msg "Output of 'fdisk -l $bootdev':" + fdisk -l $bootdev + log_msg log_msg "You have 10 seconds to hit ENTER to get a shell..." # copy logfile to /boot/ partition to preserve it.