schnapps: Encrypted export fails if `gnupg2` package is installed
Running schnapps export NUMBER DEST
with password encryption set and gnupg2
package installed (on Omnia HBL, TOS 6) leads to export failure. This happens even in case both gnupg and gnupg2 are installed as gnupg2 then becomes the default 'gpg' (no matter the installation order).
stderr:
gpg: keybox '/tmp/tmp.cbbaAi/gpg/pubring.kbx' created
gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory
gpg: can't connect to the agent: No such file or directory
gpg: problem with the agent: No agent running
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Snapshot export failed!
Might defaulting to gnupg (GPG 1.4) be the solution (as gnupg2 is missing some important components in OpenWrt packages such as pinentry [and probably gpg-agent as well] and it's usefulness is therefore pretty limited even in other scenarios)?
Or would it be better for Schnapps to explicitly use gpg1 (might be problematic if running outside TOS)?