console keymap settings lost after reboot

Bug #521878 reported by Jarod
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
console-data (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: console-data

I am running Lucid-amd64 on my machine.

lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04

I installed it via:
debootstrap --arch amd64 lucid /tftpboot/ubuntu-10.4 http://de.archive.ubuntu.com/ubuntu/
chroot /tftpboot/ubuntu-10.4
apt-get install language-pack-en
apt-get install nfs-common linux-image-2.6.32-13-generic console-data
### I set the keymap to qwertz -> Germany -> latin1 - no dead keys. ###
groupadd ...
useradd ...
passwd ...
vigr ...

After editing /etc/initramfs-tools/initramfs.conf for boot via NFS and updating the initrd, I bootet the machine via PXE and had an english keymap after first login.
I then did "dpkg-reconfigure console-data". The following dialog showed the settings I did during install. After dpkg-reconfigure was done, I had the correct console keyboard layout again. But after a reboot, I was back to the English layout.
Even with a working German layout I cannot type any Umlauts (äöü) or ß.

dpkg -l|egrep "kbd|console-data|language-pack" shows the following:

ii console-data 2:1.10-1 keymaps, fonts, charset maps, fallback table
ii kbd 1.15-1ubuntu1 Linux console font and keytable utilities
ii language-pack-en 1:10.04+20100206.1 translation updates for language English
ii language-pack-en-base 1:10.04+20100206.1 translations for language English

After some digging in /etc/init.d/ I found keyboard-setup and keymap.sh.
dpkg showed the files were contained in the following packets:

dpkg -S /etc/init.d/keyboard-setup
console-setup: /etc/init.d/keyboard-setup
 dpkg -S /etc/init.d/keymap.sh
console-common: /etc/init.d/keymap.sh

After a look into /etc/init.d/keymap.sh I found the following lines:

# If setupcon is present, then we've been superseded by console-setup.
if type setupcon >/dev/null 2>&1; then
        exit 0
fi

After that I took a look into /etc/init.d/keyboard-setup.

The last 4 lines in /etc/default/console-setup looked like this:

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""

That explains, why the machine always comes up with an English layout.
This also means I have to do "dpkg-reconfigure console-setup" to change the layout.

So after installing console-data I would have expected at least a warning , telling me that what ever I set up under this dialogue will have no affect when console-setup is installed.

Thank you.

Jarod (jarod42)
description: updated
Jarod (jarod42)
description: updated
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.