Re: VT-less kernels, and /dev/console on x86

From: Bernd Petrovitsch
Date: Wed Oct 09 2024 - 06:04:44 EST


Hi all!

On 18.08.24 02:09, nerdopolis wrote:
[...]
I originally brought this up on linux-serial, but I think it makes more sense
that it's part of how printk console device selection works. Without VTs, while
most software is able to handle the situation, some userspace programs expect
/dev/console to still be responsive. Namely systemd. It calls isatty() against
/dev/console, and since /dev/console on VT-less systems currently defaults to
/dev/ttyS0, and when /dev/ttyS0 is disconnected, the ioctl's fail, and it
refuses to write log messages to it.

What's wrong with fixing systemd?

Kind regards,
Bernd
--
--
mobile: +43 664 4416156 http://www.sysprog.at/
Embedded Linux Software Development, Consulting and Services