Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583748 - sys-kernel/genkernel-next doesn't support gpg with app-crypt/gnupg-2 (/usr/bin/gpg-agent issue)
Summary: sys-kernel/genkernel-next doesn't support gpg with app-crypt/gnupg-2 (/usr/bi...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel-next (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ettore Di Giacinto (RETIRED)
URL: https://github.com/Sabayon/genkernel-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-22 06:58 UTC by Mikhail Kurinnoi
Modified: 2020-08-20 12:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Boot with gnupg-2 and LUKS PGP key. (IMG_20160523_182638.jpg,888.70 KB, image/jpeg)
2016-05-23 15:39 UTC, Mikhail Kurinnoi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Kurinnoi 2016-05-22 06:58:11 UTC
genkernel-next initramfs work only with app-crypt/gnupg-1.4.x, but not with app-crypt/gnupg-2 that require /usr/bin/gpg-agent binary copied into initramfs and more work around in the init script. In the same time, sys-kernel/genkernel-next have ebuild part RDEPEND "gpg? ( app-crypt/gnupg )", that allow "gpg" USE flag with emerged gnupg-2, but during boot you will have "/usr/bin/gpg-agent not found" error (and some more errors, related to gnupg-2 work), plus, boot process will be stoped, since no chance to decrypt luks pgp key for crypted root partition.

Unfortunately, gnome-base/gnome-keyring require >=app-crypt/gnupg-2.0.28, so, no chance to mask gnupg-2 and emerge gnupg-1.4.x (at least for me).

Is the any chance for SLOT gnupg-1.4.x/2.x.x, or separate gnupg binary build for genkernel-next, or any other solutions? It's a bit ridiculous, when you need work around DE packages in order to create full functional initramfs...

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2016-05-23 14:21:26 UTC
What version are you running?
Comment 2 Mikhail Kurinnoi 2016-05-23 15:39:18 UTC
Created attachment 435076 [details]
Boot with gnupg-2 and LUKS PGP key.

Tested on sys-kernel/genkernel-next-63 and sys-kernel/genkernel-next-64 with identical results.

I attached photo with my stopped boot process with initramfs created by sys-kernel/genkernel-next with gnupg-2.
Comment 3 Pacho Ramos gentoo-dev 2016-05-23 19:47:17 UTC
Probably reporting this directly to upstream will help:
https://github.com/Sabayon/genkernel-next/issues

Thanks
Comment 4 Mikhail Kurinnoi 2016-05-24 04:11:15 UTC
Done. https://github.com/Sabayon/genkernel-next/issues/33

I found in sources https://github.com/Sabayon/genkernel-next/blob/master/gen_initramfs.sh#L585 , and this let me think that the gnupg-2 not supported for sure.
Probably, till gnupg-2 not supported, sys-kernel/genkernel-next RDEPEND "gpg? ( app-crypt/gnupg )" should be corrected to avoid app-crypt/gnupg-2 and USE "gpg"?
Comment 5 Viz 2019-12-11 19:15:49 UTC
I have posted a way to get GnuPG 2 to work with genkernel-next here:

https://github.com/Sabayon/genkernel-next/issues/33
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-20 12:51:00 UTC
Package removed.