I had to figure out and debug why the hell this init script did not work with source='UUID="<uuid>"'. Guess what? it does not work at all. It does work if and and only if the quote marks are removed. Why the hell a user know about it?! You have to check and test it out yourself to know what works. Common, let's not leave the user in the cold and avoid wasting too much time on how a user should write down a source with a UUID while there is not a single word about it in the config file. I'm providing a patch which fix this with an additional POSIX compliance for aritmetic evaluation (`$((expression))' is not supported which should be replaced by `$(expr expression)'.) (God, I don't want to debug such simple basic features. Aand common quoting an UUID is more common that unquoted one when dealing with UUID string.) Reproducible: Always
Created attachment 386744 [details, diff] dmcrypt.rc.patch
I almost forget to mention that my system has sh linked to zsh. This should explain the source of this issue because I'am almost certain that bash, or even (busybox) ash, should remove the quote marks automaticaly. So this is a zsh users issue. The second part of the patch won't hurt because busybox is bundled as a system package to be able to boot with it and repair a sytem, doesn't it?. Well, it won't never ever work with such aritmetic evaluation.
Comment on attachment 386744 [details, diff] dmcrypt.rc.patch your shell is broken if it doesn't support $((...)) for math. this is POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04 the luksOpen->open change is probably ok now that the latest version takes care of this itself that means the only issue here is the UUID syntax
Commit message: Move from "luksOpen" to "open" since they are the same and the former is deprecated http://sources.gentoo.org/sys-fs/cryptsetup/files/1.5.1-dmcrypt.rc?r1=1.1&r2=1.2
should be all set now in the tree; thanks for the report! Commit message: Use blkid -t to look up devices via tag values (like UUID/PARTUUID) http://sources.gentoo.org/sys-fs/cryptsetup/files/1.0.6-dmcrypt.confd?r1=1.6&r2=1.7 http://sources.gentoo.org/sys-fs/cryptsetup/files/1.5.1-dmcrypt.rc?r1=1.7&r2=1.8