[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:
> 
> >Hi,
> >
> >I've been playing with systemd. So far I have been unable to get a login
> >prompt. The problem is this:
> >
> >[...]
> >systemd[1]: Job dev-ttyAMA0.device/start timed out.
> >systemd[1]: Job dev-ttyAMA0.device/start finished, result=timeout
> >systemd[1]: Job serial-getty at ttyAMA0.service/start finished, result=dependency
> >[...]
> 
> This is reminiscient of 
> https://bugzilla.novell.com/show_bug.cgi?id=679165
> 
> 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.


     Werner

-- 
  "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...
Name: util-linux-2.19-agetty.patch
Type: text/x-patch
Size: 45466 bytes
Desc: util-linux-2.19-agetty.patch
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110321/9bf3b94b/attachment-0001.bin>


More information about the systemd-devel mailing list