]> git.ipfire.org Git - thirdparty/systemd.git/commit
terminal-util: handle the case where no system console is active (#40630)
authorMike Yuan <me@yhndnzj.com>
Tue, 10 Feb 2026 22:59:07 +0000 (23:59 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Feb 2026 22:59:07 +0000 (23:59 +0100)
commit5b501abfc29e083dfa62c869439cd9c808634edd
tree2f7e282bc3142695738558f57dfa972c805d22bc
parent8b736d94cdf5f2f1281f7f58c77b9676de3add1e
parent48c1393bfb026e114aed56f1c2b8564662039c9b
terminal-util: handle the case where no system console is active (#40630)

/dev/console might have no backing driver, in which case
/sys/class/tty/console/active is empty. Unlike get_kernel_consoles()
resolve_dev_console() currently proceeds with empty devnode, resulting
in setup_input() -> acquire_terminal() emitting -EISDIR as we're trying
to open /dev/. Let's catch this and report -ENXIO.