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

Jonas Meurer jonas at freesources.org
Wed Dec 17 22:44:51 UTC 2008


On 17/12/2008 Christian Jaeger wrote:
> >> Correct would be:
> >>
> >> if [ "$(dmsetup table "$depnode" 2> /dev/null | cut -d' ' -f3)" != "crypt" ]; then
> >>     
> >
> > You're right, but i'm not sure about the quotes inside quotes. Is that a
> > clean solution either?
> >   
> 
> Yes, that's the clean way, to the best of my knowledge. Note: it does
> not add double quotes around what the $depnode variable contains; but
> instead those *are* those same kinds of quotes that you are using in the
> second line. Shell quoting isn't straightforward to understand or to
> explain (at least I haven't taken the time to hunt down or write myself
> an explanation), but once you got it you can verify that it is precise.

Thanks, I just read some shell and posix docs to be sure, and it seems
like you're correct:
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_03


So I applied that change as well and built the packages again.

could you give them a try and report whether they work for you? I
already tested them on similar setups, but you doing extra testing
doesn't hurt.

greetings,
 jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20081217/c6f65ac5/attachment.pgp 


More information about the pkg-cryptsetup-devel mailing list