KEYMAP variable not used

Bug #207756 reported by Olivier Le Thanh Duong
2
Affects Status Importance Assigned to Milestone
fai (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

FAI provide a set of exemple script. One of them ( scripts/FAIBASE/10-misc) try to set the keyboard layout according to the FAI variable KEYMAP found in .var files. It does so by doing :
$ROOTCMD bash -c "echo 'console-data console-data/keymap/full select $KEYMAP' | debconf-set-selections"

However Ubuntu doesn't use console-data by default anymore but console-setup instead.

I went around the problem by adding the content of :
$debconf-get-selections |grep console-setup
to my debconf/FAIBASE file.

Here is what I added :
console-setup console-setup/variant select Belgium
console-setup console-setup/charmap select UTF-8
console-setup console-setup/layoutcode string be
console-setup console-setup/compose select Right Logo key
console-setup console-setup/optionscode string lv3:ralt_switch,compose:rwin
console-setup console-setup/layout select Belgium
console-setup console-setup/codesetcode string Uni1
console-setup console-setup/modelcode string pc105
console-setup console-setup/altgr select Right Alt
console-setup console-setup/model select Generic 105-key (Intl) PC
console-setup console-setup/codeset select . Combined - Latin; Slavic Cyril

Note : I'm using the packages from the FAI PPA

Revision history for this message
Reinhard Tartler (siretart) wrote :

I see. This means that this functionality is not working as intended because of the switch.

Your proposal is strange. I think it would be more straight forward to just add these preseeding to the debconf/ directory in the configuration space, instead of manually fiddling with debconf-set-selections.

The question remains what to do now. Ideally, we would have some way to 'detect' what language/keyboard environment is desired and set it via a script. If someone can come up with a patch for this, please attach the patch here.

Changed in fai:
status: New → Confirmed
Revision history for this message
Reinhard Tartler (siretart) wrote :

what I can do right now is removing the console-data integration from the example scripts compltely. this is in so much an improvement that new users don't get confused with the console-data vs console-setup madness.

Shall we do that for hardy?

Revision history for this message
Reinhard Tartler (siretart) wrote : [MERGE] * remove console-data support

Please comment on the attached proposed patch.

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

Revision history for this message
Björn Torkelsson (torkel) wrote :

Looks good to me.

Might be an idea to point out that KEYMAP is not used on Ubuntu though.

/torkel

Revision history for this message
Reinhard Tartler (siretart) wrote : Re: [Bug 207756] Re: KEYMAP variable not used

Björn Torkelsson <email address hidden> writes:

> Might be an idea to point out that KEYMAP is not used on Ubuntu though.

where? NEWS.Debian? debian/changelog?

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

Revision history for this message
Björn Torkelsson (torkel) wrote :

I would vote for NEWS.Debian as I doubt most people read the changelog.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fai - 3.2.4+svn4837-0ubuntu2

---------------
fai (3.2.4+svn4837-0ubuntu2) hardy; urgency=low

  * upload to hardy

fai (3.2.4+svn4837-0ubuntu2~ppa3) hardy; urgency=low

  * simple config GRUB/10-setup: add to kernel-img.conf postinst and postrm
    hook settings that run update-grub. Without them, grub's menu.lst is not
    updated on linux image installation/removal.

fai (3.2.4+svn4837-0ubuntu2~ppa2) hardy; urgency=low

  * don't install menu.lst and GRUB postinst script at all in the binary
    package by removing them in the clean rule of debian/rules
  * remove console-data support, show how to preseed console-setup in the
    example class GERMAN. (LP: #207756)

fai (3.2.4+svn4837-0ubuntu2~ppa1) hardy; urgency=low

  [ Christian Meier ]
  * bin/fai, lib/get-config-dir-nfs: always use -n option in romountopt to
    prevent accessing /etc/mtab in read-only environment
    (closes: LP: #207582)
  * fix grub example (closes LP: #187659)
    * remove menu.lst of examples
    * move the postinst script of menu.lst to
      examples/simple/scripts/GRUB/10-setup and modify it to let update-grub
      do the configuration of menu.lst
  * workaround for not correctly working unionfs over nfs
    * create nfshooks (/etc/fai/10-unionfs-workaround) that delete certain
      files in nfsroot that will be created automatically through fai scripts.
      (LP: #197006)
  * add ghostscript to build dependencies
  * don't fail build if there are no postinst scripts in the 'simple-example'
    configuration space

  [ Reinhard Tartler ]
  * add genisofs alternative to mkisofs in fai-server and fai-quickstart
    packages (LP: #156836)

 -- Reinhard Tartler <email address hidden> Tue, 01 Apr 2008 12:41:34 +0200

Changed in fai:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.