initramfs - gpg decryption failed invalid IPC response

D mail at
Sun Mar 4 19:28:52 CET 2018

Thank you for getting back to me. I have added the options to the 
decryption command.

It reports that it fails on invoking `pinentry` utility.

I attached an image with the full log if interested.

pinentry-tty binary and gpg-agent.conf files are added to the the 
initram image here:

Have anything changed so that I'd need to set GPG_TTY to a specific value?

Currently I do not set the variable as I don't think I have access to 
the tty at that point.

I also tried to run `pinentry-tty -d` in the hook immediately before the 
gpg decryption command is executed - pinentry successfully started 
listening for STDIN, and I could use `GETPIN` command which would ask 
for a  PIN and dump it out. No error or debug messages were printed.

Any ideas?

On 02/28/2018 03:06 PM, Werner Koch wrote:
> On Wed, 31 Jan 2018 22:25,mail at  said:
>>      gpg (GnuPG) 2.2.4
>>      libgcrypt 1.8.2
>> And prints:
>>     gpg: encrypted with <bit-length> RSA key, ID <key id>. created
>>     <date> <owner name + email>
>>     gpg: public key decryption failed: Invalid IPC response
>>     gpg: decryption failed: No secret key
> Can you please add
>    --verbose --debug=ipc
> to the gpg invocation?  This will show the IPC and thus the invalid IPC
> response.
> Salam-Shalom,
>     Werner

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bootlog_gpg.jpg
Type: image/jpeg
Size: 367919 bytes
Desc: not available
URL: <>

More information about the Gnupg-users mailing list