[systemd-devel] [PATCH] s390/getty-generator: initialize essential system terminals/consoles

Dr. Werner Fink werner at suse.de
Mon Feb 3 06:28:01 PST 2014


On Mon, Feb 03, 2014 at 03:07:04PM +0100, Hendrik Brueckner wrote:
> On Mon, Feb 03, 2014 at 02:44:43PM +0100, Hannes Reinecke wrote:
> 
> > But that's not a requirement anywhere in the console code.
> > Quite the contrary; tty drivers have the 'first_minor' entry
> > to explicit request an offset other than '0'.
> > 
> > (And the console driver has an explict '->device' callback
> > which allows the tty driver to return the correct index.
> > Not that it's used here; would've been too easy).
> > 
> > So how to fix this?
> > Update the driver to adhere to the (broken) current behaviour?
> > Or modify 'active' to return the corrent tty name?
> 
> That's probably a good option but might break existing applications that rely
> on what is in "active".  Alternatively add a new sysfs attribute to display
> console's associated terminal devices.
> 
> ... or don't look at the console at all and start getty's on those terminal
> devices that are available.

Just to say it: there already is a /proc/consoles which does show
the active devices of the system console.   As the name of the console
driver ans the index is not unique also the major and minor of the
active decvices are shown.


> > Or add a workaround to systemd?

The /proc/consoles is not a sysfs attribute.

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/20140203/94e97428/attachment.pgp>


More information about the systemd-devel mailing list