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

David Härdeman david at hardeman.nu
Wed May 9 20:11:02 UTC 2007


On Wed, May 09, 2007 at 09:38:55PM +0200, Joerg Jaspert wrote:
>next thing I think is wrong - it seems to sort etc/crypttab before
>processing the entries in it. Consider a tab like the following:
>
>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

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

-- 
David Härdeman





More information about the Pkg-cryptsetup-devel mailing list