Bug#792823: keyboard-configuration: keymap variant unsupported by debian-installer should be use for the installed system

2017-06-25 Thread Olaf Mandel
Package: keyboard-configuration
Version: 1.164
Followup-For: Bug #792823

Dear Maintainer,

problem still persists in Stretch. To reproduce, add the following
option to the kernel command line while booting the

installer: keyboard-configuration/xkb-keymap=de(nodeadkeys)

This will result in both the installer and the installed system using a
default us keyboard layout.

A deeper investigation found that it is the call to db_go in line 1346
of the debian/keyboard-configuration.config file that erases the
unrecognized setting.

It is also not possible to preseed the installer with a "basic" setting
for keyboard-configuration/xkb-keymap and the installed system with a
more advanced setup via the internal keyboard-configuration/layoutcode
and keyboard-configuration/variantcode settings: their values overwrite
xkb-keymap in line 1235 of the script.

My current workaround is to configure the installed system via
preseed/late_command, using sed to edit /etc/default/keyboard in the
target. But that is less than ideal...

Thank you,
Olaf Mandel
-- System Information:
Debian Release: 9.0
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages keyboard-configuration depends on:
ii  debconf 1.5.61
ii  liblocale-gettext-perl  1.07-3+b1

keyboard-configuration recommends no packages.

keyboard-configuration suggests no packages.

Versions of packages console-setup depends on:
ii  console-setup-linux  1.164
ii  debconf  1.5.61
ii  xkb-data 2.19-1

Versions of packages console-setup suggests:
ii  locales   2.24-11+deb9u1
ii  lsb-base  9.20161125

Versions of packages console-setup-linux depends on:
ii  init-system-helpers  1.48
ii  kbd  2.0.3-2+b1

Versions of packages console-setup-linux suggests:
ii  console-setup  1.164

Versions of packages keyboard-configuration is related to:
pn  console-common
pn  console-data  
pn  console-tools 
pn  gnome-control-center  
ii  kbd   2.0.3-2+b1
ii  systemd   232-25

-- debconf information excluded



signature.asc
Description: OpenPGP digital signature


Bug#792823: keyboard-configuration: keymap variant unsupported by debian-installer should be use for the installed system

2015-07-18 Thread Daniel Dehennin
Package: keyboard-configuration
Version: 1.130
Severity: normal

Dear Maintainer,

Hello,

I'm trying to preseed Jessie installation and I have issue with the
keyboard.

#+begin_src preseed
# Locale sets language and country.
# critical
d-i debian-installer/locale string fr_FR.UTF-8

# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language   string fr
d-i debian-installer/countrystring FR

# Disable automatic (interactive) keymap detection.
d-i console-setup/ask_detectboolean false
#d-ikeyboard-configuration/xkb-keymap   select  fr(oss)
#+end_src

My keyboard finish in “us”.

According to the preseed documentation[1]:

“Only basic keymap variants are available during installation.”

So, if I switch the “fr(oss)” to “fr(latin9)”, my installed system have
the “fr(latin9)” keymap.

I think the keyboard-configuration preseed should not be reset during
the installation if the variant is not supported by debian-installer.

A better solution could be to configure the default variant for the
debian-installer and use the preseed values for the installed system.

This way, we have:

- debian-installer: use default variant for the “fr” layout, do not
  touch the preseed values

- during the system install: get the keymap from the preseed, the “oss”
  variant is then used by the system.

Regards.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (90, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages keyboard-configuration depends on:
ii  debconf 1.5.56
ii  initscripts 2.88dsf-59.2
ii  liblocale-gettext-perl  1.05-9

keyboard-configuration recommends no packages.

keyboard-configuration suggests no packages.

Versions of packages console-setup depends on:
ii  console-setup-linux  1.130
ii  debconf  1.5.56
ii  xkb-data 2.14-1

Versions of packages console-setup suggests:
ii  locales   2.19-18
ii  lsb-base  4.1+Debian13+nmu1

Versions of packages console-setup-linux depends on:
ii  kbd  1.15.5-2

Versions of packages console-setup-linux suggests:
ii  console-setup  1.130

Versions of packages keyboard-configuration is related to:
ii  console-common  0.7.88
ii  console-data2:1.12-5
pn  console-tools   
ii  kbd 1.15.5-2

-- debconf information:
  keyboard-configuration/store_defaults_in_debconf_db: true
  keyboard-configuration/unsupported_config_options: true
  console-setup/store_defaults_in_debconf_db: true
* keyboard-configuration/layout: France
  keyboard-configuration/unsupported_options: true
  keyboard-configuration/unsupported_layout: true
* keyboard-configuration/variant: Français - Français (Bépo, ergonomique, façon 
Dvorak)
* console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic 
languages
* keyboard-configuration/ctrl_alt_bksp: true
  console-setup/guess_font:
  keyboard-configuration/toggle: No toggling
  console-setup/codesetcode: Lat15
* console-setup/fontface47: Fixed
* console-setup/charmap47: UTF-8
  keyboard-configuration/other:
  keyboard-configuration/layoutcode: fr
  keyboard-configuration/unsupported_config_layout: true
  console-setup/use_system_font:
  keyboard-configuration/variantcode: bepo
  keyboard-configuration/switch: No temporary switch
  debian-installer/console-setup-udeb/title:
  console-setup/framebuffer_only:
  keyboard-configuration/xkb-keymap: fr(bepo)
  console-setup/fontsize: 8x16
* keyboard-configuration/compose: Menu key
* console-setup/fontsize-fb47: 8x16
  keyboard-configuration/modelcode: pc105
  console-setup/fontsize-text47: 8x16
* keyboard-configuration/altgr: The default for the keyboard layout
  keyboard-configuration/optionscode: compose:menu,terminate:ctrl_alt_bksp
* keyboard-configuration/model: PC générique 105 touches (intl)


Footnotes: 
[1]  https://www.debian.org/releases/stable/amd64/apbs04.html.en

-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF


signature.asc
Description: PGP signature