terminal-util: modernize get_kernel_consoles() a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 14 Feb 2018 13:56:17 +0000 (14:56 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Feb 2018 13:56:17 +0000 (14:56 +0100)
commitbef41af2332252e4e1774ccba23eba6aef959074
tree59e8e0ae67f77143d9ed4081394d3838ad25b361
parentc2b32159413aec1dc8162c4423f04ebb6da68476
terminal-util: modernize get_kernel_consoles() a bit

Also, make sure when we run in a container, we don't use the data from
/sys at all, but immediately fall back to /dev/console itself.
src/basic/terminal-util.c
src/basic/terminal-util.h