Skip to content

Commit

Permalink
Add serial console when debug is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Cubie committed Dec 17, 2013
1 parent f928b99 commit 0c1252c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions etc/hostname
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(initramfs)
1 change: 1 addition & 0 deletions etc/passwd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
root::0:0:root:/root:/bin/sh
5 changes: 4 additions & 1 deletion init
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export recovery=

# mdadm needs hostname to be set. This has to be done before the udev rules are called!
if [ -f "/etc/hostname" ]; then
/bin/hostname -b -F /etc/hostname 2>&1 1>/dev/null
/bin/hostname -F /etc/hostname 2>&1 1>/dev/null
fi

# Bring in the main config
Expand Down Expand Up @@ -225,6 +225,9 @@ else
resume=${RESUME:-}
fi

# get the serial console if we want to debug
[ "$debug" = "y" ] && /sbin/getty 115200 ttyFIQ0 &

maybe_break top

# export BOOT variable value for compcache,
Expand Down

0 comments on commit 0c1252c

Please sign in to comment.