[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#465812: [Pkg-cryptsetup-devel] Bug#465812: linux-image-2.6.22-3-686: [Regression] LuKS passphrase not accepted anymore



On Fri, Feb 15, 2008 at 10:16:06PM +0100, Jonas Meurer wrote:
On 15/02/2008 Martin Ammermüller wrote:
On Friday 15 February 2008 17:23:39 maximilian attems wrote:
> On Fri, 15 Feb 2008, Martin Ammermüller wrote:
> > Tried that for 2.6.22-3-686 and 2.6.24 with no effect. And I'm pretty
> > sure that i didn't enter the passphrase wrong :) (works still with
> > 2.6.22-2, did not try my luck with update-initramfs on this kernel-image,
> > though).
>
> well then it can only be a cryptetup bug of newer version.
> as newer cryptsetup land on both of those.

Looks like the keyboard-layout isn't set up correctly. I run etch installer with german keyboard layout. If I enter the passphrase like my keyboard had an english layout, it works with linux-image 2.6.24. I also did a diff of initrd.img from 2.6.22-2 and 2.6.22-3. /bin/kbd_mode as well as /bin/loadkeys are missing in initrd.img-2.6.22-3:

David, can you take a look at this one? What exactly is responsible for
putting kbd_mode and loadkeys into the initramfs? A brief search through
the cryptsetup initramfs scripts/hooks gave no result, so I doubt that
that's the source for the problem. But you should know more ;-)

cryptsetup used to have code for adding stuff for keyboard setup. That code was moved into initramfs-tools and it should be activated by the cryptsetup/trunk/debian/initramfs/cryptroot-conf file which should be installed to /usr/share/initramfs-tools/conf.d. It seems that SVN commit 433 moved that file to /usr/share/initramfs-tools/conf-hooks.d.

I'm not sure what the difference between the two directories are, but perhaps the newer location is only supported by a newer initramfs-tools version?

--
David Härdeman



Reply to: