[Pkg-kbd-devel] Bug#443606: Improvements for kbd?

Michael Schutte m.schutte.jr at gmail.com
Wed Apr 9 15:32:32 UTC 2008


On Mon, Apr 07, 2008 at 01:06:46AM +0200, Samuel Thibault wrote:
> Anton Zinoviev, le Wed 10 Oct 2007 01:37:01 +0300, a écrit :
> > Regarding #443606, the reason this problem happens is the following
> > fragment in /etc/init.d/console-screen.kbd.sh:
> > 
> >     if [ "$RUNLEVEL" = S ]; then
> >         LIST_CONSOLES=0
> >     elif [ -z "$LIST_CONSOLES" ]; then
> >         #  Wait for getty to provide TTYs
> >         sleep 3
> >         LIST_CONSOLES=`sed -e '/^ *#/d' /etc/inittab | grep 'tty[0-9]*$' | awk -
> > F: '{printf "%s ", $1}'`
> >     fi
> > 
> > I have no idea why if RUNLEVEL is S (and it is S when the script is
> > invoked), then only the first console is configured.
> 
> Maybe the intent was actually 1 (i.e. single user mode, in which only
> the first console is used), but then console-screen.kbd.sh should be
> also called in other levels, i.e. debian/rules should rather contain
> something like
> 
> dh_installinit --init-script=console-screen.kbd.sh -r -u"start 01 1 2 3 4 5."

The special behaviour for runlevel S was introduced in April 2006.  This
is the then-maintainer’s explanation for it:

	debian/console-screen.kbd.sh: When this script is run, only the
	first TTY is created, so all other TTYs have no settings.  A
	workaround is to add

	  u8:23:once:/etc/init.d/console-screen.kbd.sh reload

	in /etc/inittab so that this script is run again after TTYs are
	allocated.  […]

	WARNING: this is still experimental!

	-- Denis Barbier <barbier at debian.org>

The suggested workaround seems quirky to me, though, as this would add
another font change to the startup process; we already have enough of
them, see #443645.

> console-screen.kbd.sh should just drop the if [ "$RUNLEVEL" = S ] case.

… as well as the “sleep 3” command.  The part of the script we are
dealing with here was obviously intended to initialize the first console
very early during the boot process, and then doing all the others when
the gettys are ready—the code for the latter has never been implemented.
I’ll see about getting rid of the $RUNLEVEL = S case, as initializing
all used consoles should always work.

Best regards,
-- 
Michael Schutte <m.schutte.jr at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-kbd-devel/attachments/20080409/c4b1a1fe/attachment.pgp 


More information about the Pkg-kbd-devel mailing list