[systemd-devel] systemd, getty and udev

Andrey Borzenkov arvidjaar at gmail.com
Mon Mar 21 10:05:44 PDT 2011


On Mon, Mar 21, 2011 at 6:06 PM, Michael Olbrich
<m.olbrich at pengutronix.de> wrote:

>> The default systemd files only start getties on a handful of ttys. Since
>> it seems impossible to distinguish between display ttys and e.g. modem
>> ttys, one can't just simply start gettys on all tty*, thus necessiting
>> manual addition for further ttys in the udev rules.
>
> hmmm, that is unfortunate. There are a lot of different names for the
> serial ports on embedded systems. And using a serial console here is rather
> common. Maybe the tty from /sys/class/tty/console/active can always be
> added somehow?
>

src/getty-generator.c:        if
(read_one_line_file("/sys/class/tty/console/active", &active) >= 0) {


More information about the systemd-devel mailing list