[pkg-cryptsetup-devel] Bug#626738: cryptsetup fails to read passphrase from stdin
jonas at freesources.org
Tue May 17 17:47:38 UTC 2011
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:
I prepared new packages which have this patch incorporated.
Please give them a try and tell me whether that fixes the issue for you:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: Digital signature
More information about the pkg-cryptsetup-devel