procd: Use /dev/console for serial console if exists
authorGaurav Pathak <gaurav.pathak@pantacor.com>
Wed, 5 May 2021 11:32:45 +0000 (17:02 +0530)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 5 May 2021 12:11:53 +0000 (13:11 +0100)
commit021ece84de430fca988acd6934f6046ea59d8c37
tree112bcb76149873dbd188f13b18a0d031fb886042
parent7ee456346baca29af40a6d1a5071e57f32ebf762
procd: Use /dev/console for serial console if exists

inittab.c: Use "/dev/console" if it is present, before trying
"/sys/class/tty/console/active" in case if console kernel command
line is not provided during boot and to allow container environment
to use it as login PTY console.

Signed-off-by: Gaurav Pathak <gaurav.pathak@pantacor.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
inittab.c