Unable to finish boot with serial console
When trying to get working serial console the “init” always hung after installing apks.
Appended “console=ttyS0,115200” as a kernel parameter to syslinux.cfg.
Enabled debug_init to find out what’s wrong with the boot script and found a bug in the “init”.
There is a procedure “setup_inittab_console()” that is intended to
configure Alpine for serial console.
A last thing it try to do is to add “ttyS0” (in my case) to /etc/securetty, but it failed due to a bug in grep statement.
The original line was like this:
line 145: if [ -e “$sysroot”/etc/securetty ] && ! grep -q -w “$tty”; then
I’ve changed the line to:
line 145: if [ -e “$sysroot”/etc/securetty ] && ! grep -q -w “$tty” “$sysroot”/etc/securetty; then
compressed into new initramfs and since that time it works like a charm.
(from redmine: issue id 5050, created on 2016-01-26, closed on 2016-06-06)