[pkg-cryptsetup-devel] Bug#507721: cryptsetup: Sometimes initrd ends up missing conf/conf.d/cryptroot file in it

Christian Jaeger christian at jaeger.mine.nu
Thu Dec 11 00:37:54 UTC 2008


Ben Hutchings wrote:
> (...)
> ...which is a linear mapping, not encrypted.
>
> However, that in turn depends on 253:9, which is sda8_crypt.
>
> So it looks like this script needs to keep following dependencies until
> it finds a non-mapped device or encrypted mapping, rather than just
> looking at the first level as it does now.
>   

Ok, so I've taken a stab at debugging this thing and got it to work; see
the attached patches; some of them also contain changes which I needed
to be able to run the script with set -eu. I think it would make sense
to apply these, too, so I'm attaching them as well. I'm not squashing
together the patches 1 and 5, and patches 6 and 8, since I think it may
show the difficulties more clear.

You can get the same patches also from the git repository at:

http://christianjaeger.ch/dyn/pubgit/gitweb?p=cryptroot-debugging.git;a=summary

This git repository also contains my whole debugging history in the
"debugging" branch, in case you're interested in more details. (It also
contains a patch for usage under set -eu to the hook-functions file from
the initramfs-tools.)

Christian.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-recurse-for-non-crypt-nodes.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20081211/c3ba2140/attachment.bin 


More information about the pkg-cryptsetup-devel mailing list