[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Common debconf variables for serial console?



On Wed, Dec 03, 2003 at 12:16:39AM +0100, Petter Reinholdtsen wrote:
> 
> At the moment, both kbd-chooser, lilo-installer and grub-installer
> need to know if the installation is using a serial console.  In
> addition, there is code to detect this in rootskel
> (/lib/debian-installer.d/S30term-linux) and set TERM_TYPE=serial in
> this case.  To avoid duplicate code, I suggest using the same debconf
> template to store the required information, and that we add these
> three templates to rootskel:
> 
>   Template: debian-installer/console/serial
>   Type: boolean
>   Default: false
>   Default[s390]: true
>   Description: Is the install using serial line console?
>     This is used in addition to environment variable TERM_TYPE=serial.
see below for more information

> 
>   Template: debian-installer/console/serial/port
>   Type: string
>   Default: ttyS0
>   Description: Device name (in /dev/) of serial console device
> 
>   Template: debian-installer/console/serial/speed
>   Type: string
>   Default: 9600
>   Description: Speed of serial console?

   Template: debian-installer/console/serial/character
   Type: string
   Default: 8N1
   Description: Number of databits, parity and stopbits for the serial console.

> 
> There is code in lilo-installer.postinst to detect the current values
> from /proc/cmdline.  I suggest this code is moved to rootskel as well.
> 
> Any comments?  Is these three variables enough?

Please design the code for the test on console type
to support also telnet and ssh. 

   Template: debian-installer/console/type
   Type: string
   Default: framebuffer
   Default[s390]: serial
   Description: What type of console will be used during installation
     This is used to set the environment variable CONSOLE_TYPE
     Usual it is 'framebuffer' with the video hardware and keyboard,
     but you can use 'serial' for systems without console hardware.
     To avoid pluging of serial cables, use 'telnet' or 'ssh'.


> 
> 
> I want to make common code out of this, instead of copying the code
> from lilo-installer into grub-installer.  If the variables are
> available, it will be easier to add serial console support in grub.


This E-mail is a plee to make  initrd with sshd 
 ( http://lists.debian.org/debian-boot/2003/debian-boot-200311/msg00652.html )
possible. Having hooks like this will make it possible to use
the Debian Installer for installations of renderfarms, clusters
and other large quatity installs.


Geert Stappers

Attachment: pgp4tNHYlckNB.pgp
Description: PGP signature


Reply to: