Hey, just a small patch to submit today. If you rather I send this to
the bug tracker then I can do that also.

This patch allows exporting the FreeBSD GELI passphrase to the kernel
environment, which we will be doing in PC-BSD to avoid prompting for the
passphrase a second time at bootup.

Let me know if you have any suggestions or need any changes. I'm
currently hacking on support for EFI framebuffer settings to be passed
to FreeBSD kernel as well, will send patches once I get things working
there.

-- 
Kris Moore
PC-BSD Software
iXsystems

--- grub-core/disk/geli.c.orig	2014-05-15 14:00:10.000000000 -0400
+++ grub-core/disk/geli.c	2014-09-26 10:18:53.325111693 -0400
@@ -430,6 +430,9 @@
   if (!grub_password_get (passphrase, MAX_PASSPHRASE))
     return grub_error (GRUB_ERR_BAD_ARGUMENT, "Passphrase not supplied");
 
+  /* Set the GELI passphrase to GRUB env, for passing to FreeBSD kernel */
+  grub_env_set ("gelipassphrase", passphrase);
+
   /* Calculate the PBKDF2 of the user supplied passphrase.  */
   if (grub_le_to_cpu32 (header.niter) != 0)
     {
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to