<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Thank you for getting back to me. I have added the options to the
      decryption command.</p>
    <p>It reports that it fails on invoking `pinentry` utility.</p>
    <p>I attached an image with the full log if interested.</p>
    <p><br>
    </p>
    <p>pinentry-tty binary and gpg-agent.conf files are added to the the
      initram image here:<br>
    </p>
    <p><a class="moz-txt-link-freetext"
href="https://github.com/fogine/initramfs-scencrypt/blob/master/scencrypt-install#L22-L28">https://github.com/fogine/initramfs-scencrypt/blob/master/scencrypt-install#L22-L28</a></p>
    <p><br>
      Have anything changed so that I'd need to set GPG_TTY to a
      specific value?</p>
    <p>Currently I do not set the variable as I don't think I have
      access to the tty at that point.</p>
    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.<br>
    <br>
    Any ideas?<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 02/28/2018 03:06 PM, Werner Koch
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:87lgfdtdhr.fsf@wheatstone.g10code.de">
      <pre wrap="">On Wed, 31 Jan 2018 22:25, <a class="moz-txt-link-abbreviated" href="mailto:mail@davidlasek.eu">mail@davidlasek.eu</a> said:

</pre>
      <blockquote type="cite">
        <pre wrap="">    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
</pre>
      </blockquote>
      <pre wrap="">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

</pre>
    </blockquote>
    <br>
  </body>
</html>