Re: Bug#619711: console-setup: breaks copying keymap to initramfs
severity 619711 important
stop
default is KEYMAP=n.
On Tue, 29 Mar 2011, Anton Zinoviev wrote:
> I had no idea that initramfs-tools does this. I think this was wrong
> even with old version of console-setup because in some situations
> cached.kmap.gz will not correspond to the actual configuration and in
> some versions of the package it was even possible for this file not to
> exist.
people using cryptsetup asked for it in order to be able to pass
their luks passphrase.
>
> It will be difficult for initramfs-tools to tell what is the correct
> name of the cached keymap. Symlinking the new name to the old is
> unreliable so I'd prefer not to implement this. Because of this in
> version 1.72 of console-setup a new option of setupcon is implemented
> --save-keyboard. Suppose you want to save the keymap in
> /tmp/initrd/etc/console-setup/cached.kmap.gz. Then simply use the
> following command:
>
> setupcon --save-keyboard /tmp/initrd/etc/console-setup/cached.kmap.gz
>
> Alternatively, instead of --save-keyboard you can use --setup-dir. I
> will explain this second option in a separate bug report. Both new
> options of setupcon are for now undocumented because I want to know
> first that they will be useful.
I'd prerfer that console-setup would ship an proper initramfs hook
telling what to add to initramfs, will followup on the other report
on that soonest.
thanks for your input.
--
maks
Reply to: