Bug#565416: update-initramfs: KEYMAP option fails to work due to missing /etc/console/boottime.kmap.gz
Package: initramfs-tools
Version: 0.93.4
Severity: normal
-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=//vmlinuz-2.6.32.2 root=/dev/mapper/system-root ro quiet
-- /proc/filesystems
ext3
ext2
ext4
fuseblk
-- lsmod
Module Size Used by
savage 23189 3
drm 105600 4 savage
af_packet 13690 2
fuse 45273 1
loop 9647 0
snd_via82xx 15226 2
gameport 6081 1 snd_via82xx
snd_ac97_codec 78752 1 snd_via82xx
ac97_bus 682 1 snd_ac97_codec
snd_pcm_oss 28704 0
snd_mixer_oss 10053 1 snd_pcm_oss
snd_pcm 46096 3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer 12834 1 snd_pcm
snd_page_alloc 4673 2 snd_via82xx,snd_pcm
snd_mpu401_uart 4119 1 snd_via82xx
snd_rawmidi 12864 1 snd_mpu401_uart
i2c_viapro 4331 0
snd_seq_device 3617 1 snd_rawmidi
snd 32499 13 snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
i2c_core 12156 2 drm,i2c_viapro
soundcore 3538 1 snd
evdev 5701 13
processor 14514 0
sha256_generic 10996 0
ansi_cprng 2957 0
krng 753 1
chainiv 2462 1
crypto_wq 487 1 chainiv
rng 1135 3 ansi_cprng,krng,chainiv
aes_i586 6784 2
aes_generic 25690 1 aes_i586
cbc 2262 1
cryptomgr 81339 0
crypto_hash 8340 2 sha256_generic,cryptomgr
aead 3799 1 cryptomgr
pcompress 825 1 cryptomgr
sd_mod 19558 2
usbhid 13817 0
hid 50452 1 usbhid
usb_storage 30309 1
dm_crypt 8651 1
crypto_blkcipher 7496 4 chainiv,cbc,cryptomgr,dm_crypt
crypto_algapi 8970 11 ansi_cprng,krng,chainiv,aes_i586,aes_generic,cbc,cryptomgr,crypto_hash,aead,pcompress,crypto_blkcipher
ide_gd_mod 16851 3
ide_cd_mod 20409 0
cdrom 25399 1 ide_cd_mod
ata_generic 1987 0
libata 114717 1 ata_generic
scsi_mod 63334 3 sd_mod,usb_storage,libata
ide_pci_generic 1896 0
uhci_hcd 16193 0
ehci_hcd 27514 0
via_agp 4580 1
via82cxxx 4298 2
button 3478 0
agpgart 18908 2 drm,via_agp
via_rhine 15038 0
mii 2658 1 via_rhine
ide_core 63390 4 ide_gd_mod,ide_cd_mod,ide_pci_generic,via82cxxx
usbcore 93544 4 usbhid,usb_storage,uhci_hcd,ehci_hcd
nls_base 4681 1 usbcore
thermal 9370 0
fan 1910 0
thermal_sys 9294 3 processor,thermal,fan
-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=y
BOOT=local
DEVICE=eth0
NFSROOT=auto
-- /etc/crypttab
# <target name> <source device> <key file> <options>
hda3_crypt /dev/hda3 none luks
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32.2 (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.10-1 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.15-1 small utilities built with klibc f
ii module-init-tools 3.11-1 tools for managing Linux kernel mo
ii udev 150-2 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.14.2-2 Tiny utilities for small and embed
initramfs-tools suggests no packages.
-- no debconf information
When specifying KEYMAP=y in /etc/initramfs-tools/initramfs.conf, update-initramfs does not include the correct keymap in the initrd. The reason is, that /etc/console/boottime.kmap.gz is not generated, so update-initramfs should probably look in some other place or at least issue a warning, that no appropriate keymap was found.
As a workaround I copied /etc/console-setup/cached.kmap.gz to /etc/console/boottime.kmap.gz and then the correct keymap was loaded.
Reply to: