[systemd-devel] How to get systemd to leave a USB serial console session alone when hadware is pulled?

Andrey Borzenkov arvidjaar at gmail.com
Thu May 16 08:58:35 PDT 2013


В Wed, 15 May 2013 21:19:38 -0700
Kaz Kylheku <kaz at kylheku.com> пишет:

> 
> Can you at least tell me how to get agetty to start on a system
> that does not have my patch, when a USB-Serial converter is
> inserted which is marked as a console?
> 

The usual stanza is to use in your udev rules

TAG+="systemd", ENV{SYSTEMD_WANTS}+="getty at ttyUSB0.service"

You probably can also check whether device is marked as console
(whatever it means) in the same rule.

TAG is likely to be already present for serial devices.


More information about the systemd-devel mailing list