Subject: Bug#3771: kbd package postinst has no sensible defaults

From: Richard Kettlewell <[email-masked]>
Date: Sat, 13 Jul 96 23:37:20 +0100 (BST)

Package: kbd
Version: 0.91-2

    PLEASE NOTE, that there are still unresolved bug-reports as of this
    release.  Look at /usr/doc/kbd/KNOWN_BUGS before reporting any bugs to
    avoid a flood of already known bugs being reported.  Thanks!

    Press RETURN to continue.

		 kbdconfig v1.1  -  Copyright (C)1996  Dominik Kubla

    Select console type []: 

It's not obvious what I'm supposed to enter here.  Looking at the
script it appears that it wants a terminal type.

It also looks as if it's expecting to get a default value from
/etc/kbd/config, but there's no such file on my system, and kbdconfig
doesn't invent a sensible default.

[time passes]

I've ended up with the following:

richard@sfere:binary$ cat /etc/kbd/config 
CONSOLE=
TERM=linux
KEYMAP=uk.map
SOFTFONT=NONE
richard@sfere:binary$ 

As you can see CONSOLE is unset, which is bad because
/etc/init.d/console is going to use it next time I reboot.

-- 
Richard Kettlewell   [email-masked]   [email-masked]
                             http://www.elmail.co.uk/staff/richard/

---

From: Miquel van Smoorenburg <[email-masked]>
Date: Sun, 14 Jul 1996 14:40:50 +0200 (MET DST)

> /etc/init.d/console is going to use it next time I reboot.

Well it's called /etc/rc.boot/0kbd on my system, it has gone through
a personality crisis I suspect ;)
Also the 0kbd script makes a symlink called "/dev/console" to /dev/tty0,
or whatever you have defined as $CONSOLE. I don't think that belongs in
the keyboard package. As a matter of fact, from sysvinit-2.64 on init
sets the CONSOLE environment variable itself so that you always know
what the console is, and some scripts already use this (it is passed from
the kernel if you have the serial console patches). Perhaps this should
go in /etc/init.d/boot..

Mike.
-- 
  Miquel van    | Cistron Internet Services   --    Alphen aan den Rijn.
  Smoorenburg,  | mailto:[email-masked]          http://www.cistron.nl/
[email-masked] | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)

---

From: Richard Kettlewell <[email-masked]>
Date: Sun, 14 Jul 96 14:02:49 +0100 (BST)

>a personality crisis I suspect ;)

Yes, there's one of those too, and it appears to be that that gets
called.  Apologies for any confusion caused.

I'd like to know what /etc/init.d/console is for, given that it
doesn't currently appear to get called.

---

From: [email-masked]
Date: Sun, 14 Jul 96 18:14 EDT

/usr/sbin/kbdconfig is also screwed up:

   # Some people prefer customized terminal types, eg for higher resolutions
   echo -n "Select console type [$TERMTYP]: "; read termtyp
   test -z "$termtyp" && termtyp=$TERMTYP          

It asks for console, but stores it as terminal info. And the questions asked
by this script are much too terse.

-- 
Dirk Eddelb"uttel                             http://qed.econ.queensu.ca/~edd