[pkg-cryptsetup-devel] Bug#626738: cryptsetup fails to read passphrase from stdin

Jonas Meurer jonas at freesources.org
Tue May 17 17:47:38 UTC 2011


Hey Oren,

On 14/05/2011 Oren Held wrote:
> Since the upgrade to cryptsetup 1.3.0, the cryptdisks init script fails to start my dm-crypt encrypted device.
> Researching it deeper, I've found that the following command (which the init script uses) doesn't behave as it used to:
> /lib/cryptsetup/askpass some_prompt | cryptsetup -c aes-cbc-plain -h ripemd160 --key-file=- homes /dev/mapper/myvg-homes
> 
> It asks for a password, then fails with the following error:
> "Cannot read requested amount of data".
> 
> However, when requesting the password from terminal (as opposed to stdin), with the following command, everything works:
> cryptsetup -c aes-cbc-plain -h ripemd160 --key-file=- homes /dev/mapper/myvg-homes
> 
> I get the prompt, put the password, and cryptsetup succeeds setting up the dm-crypt device.
> 
> I don't use luks, nor a real key file, but a simple passphrase.

Milan created a patch to fix this regression:
http://code.google.com/p/cryptsetup/source/detail?r=524

I prepared new packages which have this patch incorporated.

Please give them a try and tell me whether that fixes the issue for you:

http://people.debian.org/cryptsetup/

greetings,
 jonas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20110517/89c1cad7/attachment.pgp>


More information about the pkg-cryptsetup-devel mailing list