[systemd-devel] [PATCH] s390/getty-generator: initialize essential system terminals/consoles
Dr. Werner Fink
werner at suse.de
Tue Feb 4 08:06:57 PST 2014
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
/sys/devices/virtual/tty/3270!tty1
is not listed at least with 208. Nevertheless the nodes are there
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.
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: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140204/dd6d2031/attachment.pgp>
More information about the systemd-devel
mailing list