[systemd-devel] [PATCH] s390/getty-generator: initialize essential system terminals/consoles
brueckner at redhat.com
Wed Feb 5 03:19:21 PST 2014
On Tue, Feb 04, 2014 at 05:06:57PM +0100, Dr. Werner Fink wrote:
> On Tue, Feb 04, 2014 at 02:25:06PM +0100, Lennart Poettering wrote:
> > On Mon, 03.02.14 14:44, Hannes Reinecke (hare at suse.de) wrote:
> > >
> > > Which raises the question: what exactly should be 'active' contain?
> > > The console name (which doesn't have any equivalent in sysfs), or
> > > the tty name (which has)?
> > Userspace expects that /sys/class/tty/console/active refers to a valid
> > tty name, and that /sys/class/tty/tty0/active refers to a valid VT tty
> > name.
> Even if the identifier string of tty3270.c becomes "3270/tty" it seems
> that something goes wrong as in show_cons_active() of drivers/tty/tty_io.c
> the name_base of the struct tty_driver is not honored.
> Also on s390 the device for "3270/tty" its self is not plugged:
> systemctl list-units | grep virtual-tty | sed 's/^/ /'
> sys-devices-virtual-tty-hvc0.device loaded active plugged /sys/devices/virtual/tty/hvc0
> sys-devices-virtual-tty-hvc1.device loaded active plugged /sys/devices/virtual/tty/hvc1
> sys-devices-virtual-tty-hvc2.device loaded active plugged /sys/devices/virtual/tty/hvc2
> sys-devices-virtual-tty-hvc3.device loaded active plugged /sys/devices/virtual/tty/hvc3
> sys-devices-virtual-tty-hvc4.device loaded active plugged /sys/devices/virtual/tty/hvc4
> sys-devices-virtual-tty-hvc5.device loaded active plugged /sys/devices/virtual/tty/hvc5
> sys-devices-virtual-tty-hvc6.device loaded active plugged /sys/devices/virtual/tty/hvc6
> sys-devices-virtual-tty-hvc7.device loaded active plugged /sys/devices/virtual/tty/hvc7
> sys-devices-virtual-tty-ttysclp0.device loaded active plugged /sys/devices/virtual/tty/ttysclp0
> as the existing directory
> is not listed at least with 208. Nevertheless the nodes are there
The 3270 devices should be tagged for systemd in the 99-systemd.rules file.
> ll /dev/3270/tty1
> crw--w---- 1 root tty 227, 1 Feb 4 15:51 /dev/3270/tty1
> but a `dev-3270-tty1.device' seems not to be usable.
More information about the systemd-devel