[pkg-cryptsetup-devel] Bug#586122: Bug#586122: Bug#586122: cryptsetup: initramfs-hook is generating confusing error

Jonas Meurer jonas at freesources.org
Wed Jun 16 19:06:47 UTC 2010


Hey,

On 16/06/2010 Christoph Anton Mitterer wrote:
> The reason is, that cryptsetups hook scripts do not yet normalise the
> different ways to express devices, e.g.
> /dev/disk/by-uuid/340d6393-2aef-4a50-8bde-15f047154e4a
> in contrast to
> UUID=340d6393-2aef-4a50-8bde-15f047154e4a
> 
> I've attached an (auto-rejectable ;) ) patch... which should solve this
> issue by adding a normalisation function to cryptroot, that is invoked
> in - I hope - all places where devices are collected in that script.

initramfs/cryptroot-hook already contains canonical_device(), which does
exactly what is needed. the only problem is, that it is invoked at
add_device() instead of get_resume_devices() and get_root_device(). i
prepared a patch which solves this in a much easier way, see attachment.

this patch isn't tested yet though, will do that the next days.

stephan, if you want, you can give the patch a try as well.

greetings,
 jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cryptroot-hook.patch
Type: text/x-diff
Size: 711 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20100616/9a46d88e/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20100616/9a46d88e/attachment.pgp>


More information about the pkg-cryptsetup-devel mailing list