inittab: detect active console from kernel if no console= specified
authorMathew McBride <matt@traverse.com.au>
Fri, 5 Mar 2021 00:54:15 +0000 (00:54 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 7 Mar 2021 23:46:27 +0000 (23:46 +0000)
commit2cfc26f8456a4d5ba3836c914a742f3d00bad781
treee79983cc45db11a70477b8837a628a2807dc1132
parent945d0d79cbef1f0dd9958f409548d48ce783d933
inittab: detect active console from kernel if no console= specified

The default serial console can be set in the device tree
using the linux,stdout-path parameter (or equivalent from ACPI).

This is important for universal booting (EFI/EBBR) on ARM platforms
where the default console can be different (e.g ttyS0 vs ttyAMA0).

Signed-off-by: Mathew McBride <matt@traverse.com.au>
inittab.c
utils/utils.c
utils/utils.h