]> git.ipfire.org Git - thirdparty/mkosi.git/commit
hash signing: Use keyring of running user for non-root builds 1516/head
authorMichael A Cassaniti <michael@cassaniti.id.au>
Wed, 26 Apr 2023 04:32:12 +0000 (14:32 +1000)
committerMichael A Cassaniti <michael@cassaniti.id.au>
Wed, 26 Apr 2023 08:02:43 +0000 (18:02 +1000)
commit2532c07985bcea742de58fbf0526271312b18596
tree25edc3e4237ba01172670cd37781582234767a12
parentbf2fa5dcd5f3f2e2091edb04e6ba97ae65a2f2cb
hash signing: Use keyring of running user for non-root builds

`gpg` will attempt to use the root user keyring When running as a non-root
user instead of using the keyring of the user that is executing `mkosi`.
This change will attempt to use the keyring given by `GNUPGHOME` and
fallback to using `~/.gnupg`.
mkosi/__init__.py