[pkg-fso-maint] install.sh: debconf preseeding for console-* packages (was Re: install.sh: console-* and xserver-xorg-* packages)

Luca Capello luca at pca.it
Mon May 11 20:31:26 UTC 2009


Hi there!

On Mon, 11 May 2009 22:09:50 +0200, Luca Capello wrote:
> Actually, we have two problems here and I will discuss them in separate
> mails following this one:
[...]
> 2) how to preseed debconf configuration for console-* packages

Like console-data, console-setup requires user interaction.

NB, from now on, I will discuss only the console-setup case, since
    console-data is already deprecated in favor of console-setup.
    Uunfortunately, I do not remember where I have already asked this
    question, thus I cannot provide link to support my statement.

The simplest solution would be to preseed the debconf values similarly
to how we do for dash or nodm.  However, the following two points must
be considered.


a. there are quite a lot of values:
   =====
   gismo:/home/luca# debconf-show console-setup
   * console-setup/variant: USA - International (with dead keys)
     console-setup/unsupported_layout: true
     console-setup/unsupported_options: true
   * console-setup/charmap: UTF-8
     console-setup/layoutcode: us
   * console-setup/compose: Right Control
     console-setup/fontsize-text: 12x6
     console-setup/optionscode: lv3:ralt_switch,compose:rctrl
     debian-installer/console-setup/title:
     console-setup/unsupported_config_options: true
   * console-setup/layout: USA
     console-setup/variantcode: intl
     console-setup/codesetcode: Lat15
     console-setup/dont_ask_layout:
     console-setup/modelcode: pc105
   * console-setup/altgr: Right Alt
   * console-setup/ttys: /dev/tty[1-6]
   * console-setup/model: Generic 105-key (Intl) PC
   * console-setup/fontsize-fb: 12x6
     console-setup/switch: No temporary switch
     console-setup/unsupported_config_layout: true
   * console-setup/codeset: # Latin1 and Latin5 - western Europe and Turkic languages
     console-setup/toggle: No toggling
   * console-setup/fontface: Terminus
     console-setup/fontsize: 12x6
   gismo:/home/luca#
   =====


b. installing console-setup in a clean sid from `cowbuilder --login`
   does not prompt for any debconf question.  The installation ends up
   with the following debconf values:
   =====
   (sid-amd64)root at gismo:/$ debconf-show console-setup
     debian-installer/console-setup/title:
     console-setup/ttys: /dev/tty[1-6]
     console-setup/variant: USA
     console-setup/unsupported_config_options: true
     console-setup/model: Generic 105-key (Intl) PC
     console-setup/fontsize-fb: 16
     console-setup/variantcode:
     console-setup/layout: USA
     console-setup/unsupported_layout: true
     console-setup/codesetcode: Uni1
     console-setup/switch: No temporary switch
     console-setup/unsupported_options: true
     console-setup/unsupported_config_layout: true
     console-setup/layoutcode: us
     console-setup/charmap: UTF-8
     console-setup/codeset: . Combined - Latin; Slavic Cyrillic; Hebrew; basic Arabic
     console-setup/fontsize-text: 16
     console-setup/compose: No compose key
     console-setup/modelcode: pc105
     console-setup/optionscode:
     console-setup/toggle: No toggling
     console-setup/fontface: VGA
     console-setup/altgr: No AltGr key
     console-setup/fontsize: 16
   (sid-amd64)root at gismo:/$
   =====


I prefer option b, because it keeps everything at the "default"
value.  Moreover, thanks to the --include cdebootstrap option, the patch
is very smaller:

--8<---------------cut here---------------start------------->8---
diff --git a/install.sh b/install.sh
index 1fa9609..558c5d2 100755
--- a/install.sh
+++ b/install.sh
@@ -82,18 +82,15 @@ intern_no_partitioning=""
 # with packages for a basic debian with network connectivity
 CDEBOOTSTRAP_FLAVOUR=minimal
 CDEBOOTSTRAP_PACKAGE=$INST_MIRROR/pool/main/c/cdebootstrap/cdebootstrap-static_0.5.4_armel.deb
-CDEBOOTSTRAP_EXTRA_PACKAGES=ifupdown,dropbear,udev,procps,netbase,vim-tiny,module-init-tools,wget,openssh-client
+CDEBOOTSTRAP_EXTRA_PACKAGES=ifupdown,dropbear,udev,procps,netbase,vim-tiny,module-init-tools,wget,openssh-client,console-setup
 # This gets passed to cdebuildstrap. currently not used
 CDEBOOTSTRAP_EXCLUDE_PACKAGES=hello
 
--8<---------------cut here---------------end--------------->8---

I tested the above patch, together with the one at:

  http://lists.alioth.debian.org/pipermail/pkg-fso-maint/2009-May/001061.html

and indeed the installation does not stop anymore for console-setup
debconf configuration.

Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20090511/55e0b762/attachment-0001.pgp>


More information about the pkg-fso-maint mailing list