Skip to content

Commit

Permalink
Print 'fdisk -l' output and memory info in 'fail' function.
Browse files Browse the repository at this point in the history
Output of 'fdisk -l $bootdev' 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 <[email protected]>
  • Loading branch information
diederikdehaas committed Jul 17, 2021
1 parent 7016b8c commit 606b399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/etc/init.d/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 $bootdev':"
fdisk -l $bootdev

print_mem_info

Expand Down

0 comments on commit 606b399

Please sign in to comment.