Bug#619711: console-setup: breaks copying keymap to initramfs
reassign 619711 initramfs-tools
thanks
On Sat, Mar 26, 2011 at 12:49:24PM +0100, Mario 'BitKoenig' Holbe wrote:
>
> if a system's keymap needs to be loaded during the initramfs stage,
> initramfs-tools' /usr/share/initramfs-tools/hooks/keymap looks for
> /etc/console-setup/cached.kmap.gz
> and copies it to the initramfs.
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.
> console-setup 1.71 changed the name of this file to
> /etc/console-setup/cached_${CHARMAP}_$backspace$VARIANT.kmap.gz
> i.e. something like
> /etc/console-setup/cached_ISO-8859-15_del.kmap.gz
The new version of console-setup tries to guess good values for several
configuration options if values are not provided in its configuration
files. Because of this, it is possible (when the system environment
changes - locale and/or terminal settings) that a new keymap will be
required even when the user has not changed anything in the
configuration files of console-setup. Hence, it would be impossible for
console-setup to tell whether cached.kmap.gz can be used or the keymap
has to be regenerated.
> There are several alternatives to fix this bug like
> * symlinking the new name to the old
> * moving the keymap-copying from initramfs-tools to console-setup
> * updating initramfs-tools to honor the new keymap name
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:
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.
Anton Zinoviev
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110329120457.GA25963@debian.lan">http://lists.debian.org/20110329120457.GA25963@debian.lan
04-05-2011, 09:00 PM
maximilian attems
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
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110405210049.GA5925@stro.at">http://lists.debian.org/20110405210049.GA5925@stro.at
11-23-2011, 10:40 AM
Michael Prokop
Bug#619711: console-setup: breaks copying keymap to initramfs
* maximilian attems [Die Apr 05, 2011 at 11:00:49 +0200]:
> On Tue, 29 Mar 2011, Anton Zinoviev wrote:
[...]
> > 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:
> > 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.
So, how could we resolve this issue?
Anton, is there any chance you could provide an initramfs hook which
takes care of that? (The advantage of this approach would be that
the hook can use features of console-setup according to its version
and you'd have full control over it.)
regards,
-mika-
11-23-2011, 01:37 PM
Anton Zinoviev
Bug#619711: console-setup: breaks copying keymap to initramfs
On Wed, Nov 23, 2011 at 12:40:05PM +0100, Michael Prokop wrote:
>
> > 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.
>
> So, how could we resolve this issue?
>
> Anton, is there any chance you could provide an initramfs hook which
> takes care of that? (The advantage of this approach would be that
> the hook can use features of console-setup according to its version
> and you'd have full control over it.)
Well, the situation is that I am ready to devote as much time as it is
required in order to develop whatever is required. The problem is I am
not prepared and I don't want to maintain this afterwards (for personal
rather than technical reasons).
There are some other people helping with the development of
console-setup. They are members of debian-boot list, hopefuly an email
to this list will be helpful?
So it seems there are three options:
1. A current contributor of console-setup volunteers to help.
2. Someone from the kernel team maintains the hooks in console-setup (in
this case I can do any requested initial development, documentation,
etc.)
3. Something like --save-keyboard or --setup-dir is used.
Anton Zinoviev
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111123143700.GB10734@logic.fmi.uni-sofia.bg">http://lists.debian.org/20111123143700.GB10734@logic.fmi.uni-sofia.bg
02-15-2012, 12:28 PM
Andreas Altergott
Bug#619711: console-setup: breaks copying keymap to initramfs
please find attached a patch for the keymap hook, which fixes the bug as
described by Anton Zinoviev <anton@lml.bas.bg> in the email 'Re: Bug#619711:
console-setup: breaks copying keymap to initramfs' from Tue, 29 Mar 2011
15:04:57 +0300.
Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.11-7
ii findutils 4.4.2-4
ii klibc-utils 1.5.25-1.1
ii module-init-tools 3.16-1
ii udev 175-3
Versions of packages initramfs-tools recommends:
ii busybox 1:1.19.3-5
Versions of packages initramfs-tools suggests:
ii bash-completion 1:1.99-3
Bug#619711: console-setup: breaks copying keymap to initramfs
On Wed, Feb 15, 2012 at 02:28:13PM +0100, Andreas Altergott wrote:
>
> please find attached a patch for the keymap hook, which fixes the bug as
> described by Anton Zinoviev <anton@lml.bas.bg> in the email 'Re: Bug#619711:
> console-setup: breaks copying keymap to initramfs' from Tue, 29 Mar 2011
> 15:04:57 +0300.
>
> Regards,
> Andreas
thank you very much for looking into this.
could you please send the patch in unified form, (diff -u)
the one below is unreadble or directly use git:
http://anonscm.debian.org/gitweb/?p=kernel/initramfs-tools.git
best regards,
max
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120215144025.GA30020@vostochny.stro.at">http://lists.debian.org/20120215144025.GA30020@vostochny.stro.at
02-15-2012, 02:57 PM
Andreas Altergott
Bug#619711: console-setup: breaks copying keymap to initramfs
Hi,
Am Mittwoch, den 15.02.2012, 14:40 +0000 schrieb maximilian attems:
> could you please send the patch in unified form, (diff -u)
> the one below is unreadble or directly use git:
> http://anonscm.debian.org/gitweb/?p=kernel/initramfs-tools.git
the patch generated with git --diff in unified form is attached to this
mail.
regards,
Andreas
02-19-2012, 02:43 PM
Anton Zinoviev
Bug#619711: console-setup: breaks copying keymap to initramfs
On Wed, Feb 15, 2012 at 04:57:19PM +0100, Andreas Altergott wrote:
>
> +/bin/setupcon --save-keyboard ${DESTDIR}/etc/boottime.kmap.gz
I am not familiar with the method these scripts work (so I don't know if
this is important) but in principle it can be expected that in some
occasions setupcon will return non-zero exit code. This means something
has prevented it from saving the keyboard. In such cases an error
message will be printed to stderr.
Anton Zinoviev
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120219154322.GA8735@debian.lan">http://lists.debian.org/20120219154322.GA8735@debian.lan
09-13-2012, 03:33 PM
Ralf Jung
Bug#619711: console-setup: breaks copying keymap to initramfs
Hi,
is there any progress on this one? This recently bit me quite hard when
I installed a system with full-disk encryption, using a password which
required the correct keyboard layout to be entered.
Kind regards,
Ralf
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5051FCDE.2080006@ralfj.de">http://lists.debian.org/5051FCDE.2080006@ralfj.de
09-15-2012, 11:44 AM
Anton Zinoviev
Bug#619711: console-setup: breaks copying keymap to initramfs
[I am sending CC also to 532852@bugs.debian.org]
On Thu, Sep 13, 2012 at 05:33:50PM +0200, Ralf Jung wrote:
>
> is there any progress on this one? This recently bit me quite hard when
> I installed a system with full-disk encryption, using a password which
> required the correct keyboard layout to be entered.
As far as I can understand, this bug can be fixed in two ways - by code
provided by console-setup, or by code provided by initramfs-tools.
Almost all of the code required in order to fix this bug has been
implemented in console-setup for quite some time. Unfortunately there
are two problems:
1. I (as one of the maintainers of console-setup) can not guarantee
that I will be able to maintain this code in future. Not because this
will be too complex or too time consuming (no, it won't be...), but
rather because I don't feel myself wanting to keep myself updated with
any future changes in the initrd build process.
2. I suppose the maintainers of initramfs-tools can say something
analogous...
I am willing to provide any required development, education, whatever,
the moment there appears a developer willing to maintain this.
Anton Zinoviev
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120915114404.GA20544@logic.fmi.uni-sofia.bg">http://lists.debian.org/20120915114404.GA20544@logic.fmi.uni-sofia.bg