logind: improve logging in manager_connect_console()
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Aug 2018 18:21:27 +0000 (20:21 +0200)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Fri, 20 Aug 2021 11:06:37 +0000 (13:06 +0200)
commit9e9c6cbbdd60f4538cee041ffe3f9cd831c5de17
tree3ae89710b0841125faffa2bfdc088080a44448da
parent50a4e03d2da89df32f2f63eb56051d789508ae75
logind: improve logging in manager_connect_console()

let's make sure we log about every failure

Also, complain about systems where /dev/tty0 exists but
/sys/class/tty/tty0/active does not. Such systems (usually container
environments) are pretty broken as they mount something that is not a VC
to /dev/tty0 and they really shouldn't.

Systems should either have a VC or not, but not badly fake one by
mounting things wildly.

This just adds a warning message, as before we'll simply turn off VC
handling in this case.

(cherry picked from commit 0b6d55cae9b8adc507fbea95d1b2874729a77386)

Related: #1642460
src/login/logind.c