On Mon Nov 16 11:07, Josselin Mouette wrote: > We remove entirely the getty respawning from /etc/inittab. Instead, a > new daemon is started by a regular init script. This daemon does the > following: > * Opens all /dev/tty1 to tty6 and display a d-i-like “press enter > to activate this console” in them. > * Provide a very simple interface to reserve a VT, that can be > queried by the display manager. > * Whenever you press enter on a VT, reserve it and start a getty > process. > * When almost all ttys are allocated, start opening tty7+ and so > on. > * If no display manager is started, always run a getty process in > tty1. How about a hybrid of the two? This daemon ensures that nothing which dynamically selects ttys can allocate on 1--6 and starts a getty on them if you press enter. Thus, If you start X or some *dm you get allocated on the 'next free' tty (but not 1--6), people needing more VTs also get them allocated from 7 and in the 'default' setup (one *dm and no 'extra' ttys) alt-ctrl-f7 still works. I don't really see any reason for users of graphical logins to care which VT it is on most of the time. Matt -- Matthew Johnson
Attachment:
signature.asc
Description: Digital signature