[systemd-devel] systemd, getty and udev
Dr. Werner Fink
werner at suse.de
Mon Mar 21 08:59:23 PDT 2011
On Mon, Mar 21, 2011 at 02:58:22PM +0100, Jan Engelhardt wrote:
> On Monday 2011-03-21 12:26, Michael Olbrich wrote:
> >I've been playing with systemd. So far I have been unable to get a login
> >prompt. The problem is this:
> >systemd: Job dev-ttyAMA0.device/start timed out.
> >systemd: Job dev-ttyAMA0.device/start finished, result=timeout
> >systemd: Job serial-getty at ttyAMA0.service/start finished, result=dependency
> This is reminiscient of
> 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.
It is possible to distinguish between virtual displays and
e.g. modem ttys. Just have a look at the attachment.
Here I've ported the most features of the mingetty (1.0.8s)
of openSUSE to the agetty of util-linux (2.19) simply to
test it out.
Now with the ioctl TIOCMGET on a modem/serial line the status
bits of a modem can be determined. The ioctl TIOCMGET will
fail with EINVAL on virtual displays.
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 45466 bytes
More information about the systemd-devel