/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to initramfs-tools-hook

  • Committer: Teddy Hogeborn
  • Date: 2016-06-21 19:13:11 UTC
  • Revision ID: teddy@recompile.se-20160621191311-cdyg3jniktde5wfr
Fix "bad gpgme_op_decrypt: GPGME: Decryption failed." on boot.

* initramfs-tools-hook: Also copy_exec gpg-agent if it exists.

Closes: 819982
Reported-by: Felix Koop <fdp@fkoop.de>
Suggested-by: Anonymous

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
            copy_exec /usr/bin/gpgconf
187
187
        fi
188
188
        gpg="`/usr/bin/gpgconf|sed --quiet --expression='s/^gpg:[^:]*://p'`"
 
189
        gpgagent="`/usr/bin/gpgconf|sed --quiet --expression='s/^gpg-agent:[^:]*://p'`"
 
190
        # Newer versions of GnuPG 2 requires the gpg-agent binary
 
191
        if [ -e "$gpgagent" ] && [ ! -e "${DESTDIR}$gpgagent" ]; then
 
192
            copy_exec "$gpgagent"
 
193
        fi
189
194
    fi
190
195
elif dpkg --compare-versions "$libgpgme11_version" ge 1.4.1-0.1; then
191
196
    gpg=/usr/bin/gpg2