[Pkg-cryptsetup-devel] Bug#423102: Bug#423102: cryptsetup: sorts crypttab before processing it

Joerg Jaspert joerg at ganneff.de
Tue May 15 07:32:11 UTC 2007


On 11014 March 1977, David Härdeman wrote:

>>swap1 device random swap
>>cfoo device none luks,tries=3
>>cbar device none luks,tries=3
>>swap2 device random swap
>>cfoobar device none luks,tries=3
>>swap3 device random swap

>>(Of course use real entries for devices).

>>In theory that should get first swap1, then cfoo and cbar, then swap2
>>followed by cfoobar and swap3 done.

>>In practice it goes and does swap1, swap2, swap3 and then the "normal"
>>devices.
> Sounds weird, I can't reproduce it...the function do_start (line 397 in
> /lib/cryptsetup/cryptdisks.functions) reads /etc/crypttab like this:
> egrep -v "^[[:space:]]*(#|$)" "$TABFILE" | while read dst src key opts; do
>   SETUP MAPPING
> done

Yes, I know its weird, but it is what happens. :)

> Could you add some debugging output to do_start to try to see what is
> going on?

I try doing that soon, its a bit of a problem as that needs turning off
nearly everything on the machine.

-- 
bye Joerg
Debian is about free speech. beer once brewed can no longer be changed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20070515/9d172939/attachment.pgp 


More information about the Pkg-cryptsetup-devel mailing list