Skip to content

Commit

Permalink
Print various memory/disk info in 'fail' function.
Browse files Browse the repository at this point in the history
This information hopefully helps to figure out why something went wrong.

Signed-off-by: Diederik de Haas <[email protected]>
  • Loading branch information
diederikdehaas committed Jul 17, 2021
1 parent 247ade4 commit 44ed58e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/etc/init.d/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 44ed58e

Please sign in to comment.