-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GnuPG v2 support in initramfs for LUKS PGP keys. #33
Comments
+1. In my EFI install guide (which uses |
I already tested same idea as you have in the patch, as I wrote in "Upd" of first message, pinentry needs to be installed into initramfs too. And I still don't see any way to build static pinentry:
So, I stack with gnupg-v2 integration with internal system gnupg-v2/pinentry packages on Gentoo.
Yes, I do exactly this. But this mean all users with gnome-keyring and/or gvfs, forced do the same. Btw, probably will be good idea at least warn ppl, if gnupg-v2 detected (/usr/bin/gpg + /usr/bin/gpg-agent) instead of gnupg-v1, that gnupg-v2 version not supported and they might face issues during boot with LUKS PGP keys and crypted root partition. |
I don't have any resources here to test as for now. But in the worst scenario, if such requirements conflicts with your system too much, i think you can however build the whole statically without using emerge (heh), and use the static built just temporarly. Alternatively you could also use a container to do the job. The patch holds in the scenarios where you have the static gpg-agent. But yes, you are right, i'll add a warning that is not supported as for now. Edit: |
I have one more idea, @mudler. Is it possible add user custom gnupg binary variable, as priority binary for initramfs compilation? What exactly I mean:
In this way, we could have local ebuild with gnupg version we need, installed in safe (non system) place without any conflicts with system gnupg package. I don't see, how gnupg could be SLOTed, but some gnupg-static package with gnupg-v1 static gpg version installed as "/usr/bin/gpg-static" or in different place is more realistic to be added even into portage tree... |
I realized idea from my previous post:
Work exactly as I need without any hand-made scripts and portage conflicts. Hope, this will help. And one more issue with gnupg-v2 what I faced with (during mount non-root partitions with LUKS PGP keys) - password request redraw all console output, instead of 1 line password request in gnupg-v1. Not even sure, how gnupg-v2 will work with boot splash at all, since pinentry want all screen to be redrawing for password request on screen center. |
Hi, Is there any news on this ? I personally have a CCID reader with a keypad so pinentry isn't really an issue for me but I want it to work for everybody :) Rgds, |
I've got First patch --- /tmp/gen_initramfs.sh 2019-12-11 11:06:02.420034211 -0800
+++ /usr/share/genkernel/gen_initramfs.sh 2019-12-03 10:27:29.657421471 -0800
@@ -627,7 +627,10 @@
mkdir -p "${TEMP}/initramfs-gpg-temp/sbin/"
print_info 1 "Including GPG support"
- copy_binaries "${TEMP}/initramfs-gpg-temp" /usr/bin/gpg
+ copy_binaries "${TEMP}/initramfs-gpg-temp" \
+ /usr/bin/gpg \
+ /usr/bin/gpg-agent \
+ /usr/libexec/scdaemon
cd "${TEMP}/initramfs-gpg-temp/"
log_future_cpio_content Then create a directory called Next enable loopback pinentry to avoid extra pinentry dependencies by edit
and edit
Then run
and finally ensure all required kernel parameters are set, like:
|
I followed most part of @sakaki- 's EFI guide (thanks!), however GnuPG v1 provided with |
@vizv : I am very interested to know if you ever been able to make @Sakaki Guide works with your Yubikey to unlock your LUKS partition ? is there anything else than your comment from Dec 11, 2019 needed ? In fact staticgpg is not supporting card so I think I have to tune & change some procedure from @Sakaki guide but I am a newbie at Gentoo and I am wondering if you'd be able to share with me what did you change to make it work with your Yubikey ? Many thanks! |
Could you please, add gnupg v2 support? The issue is /usr/bin/gpg-agent, that must be also copied for gnupg v2.
Here is the bug I filled in Gentoo bugzilla https://bugs.gentoo.org/show_bug.cgi?id=583748 with boot process photo (by some reason I can't attach photo into this issue).
Upd.
I just made some tests, and looks like gnupg-v2 need staticly builded pinentry, that not allow gtk/qt4 stuff (in Gentoo ebuild). Is the any chance for internal gnupg-v1 build in order to provide GPG support, something like busybox build?
The text was updated successfully, but these errors were encountered: