aboutsummaryrefslogtreecommitdiff
path: root/sysutils/grub2-efi/files/patch-grub-core_disk_geli.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/grub2-efi/files/patch-grub-core_disk_geli.c')
-rw-r--r--sysutils/grub2-efi/files/patch-grub-core_disk_geli.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/grub2-efi/files/patch-grub-core_disk_geli.c b/sysutils/grub2-efi/files/patch-grub-core_disk_geli.c
new file mode 100644
index 000000000000..f8d1f9bed333
--- /dev/null
+++ b/sysutils/grub2-efi/files/patch-grub-core_disk_geli.c
@@ -0,0 +1,12 @@
+--- grub-core/disk/geli.c.orig 2015-01-30 16:34:55 UTC
++++ grub-core/disk/geli.c
+@@ -445,6 +445,9 @@ recover_key (grub_disk_t source, grub_cr
+ 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)
+ {