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

Christoph Anton Mitterer christoph.anton.mitterer at physik.uni-muenchen.de
Wed Jun 16 18:20:20 UTC 2010


Hi Stephan.

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.

Currently I only know about the following synonyms used:
LABEL=foo <=> /dev/disk/by-label/foo
UUID=foo <=> /dev/disk/by-uuid/foo

My current code has the problem that it will fail, should udev ever
decide to use other strings...

Cheers,
Chris.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cryptroot.patch
Type: text/x-patch
Size: 1897 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20100616/18cbda6d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3387 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20100616/18cbda6d/attachment-0001.bin>


More information about the pkg-cryptsetup-devel mailing list