[bug #67668] GRUB 2.14_rc1 "Too large md context" error when boot with custom LUKS2

volte <[email protected]> Tue, 4 Nov 2025 05:59:44 -0500 (EST)
Newsgroups gmane.comp.boot-loaders.grub.bugs
Message-ID <[email protected]>
--8323329-924028875-1762253984=:4118936
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/bugs/?67668>=0A=0A                 Summa=
ry: GRUB 2.14_rc1 "Too large md context" error when boot=0Awith custom LUKS=
2=0A                   Group: GNU GRUB=0A               Submitter: volte=0A=
               Submitted: =D0=92=D1=82 04 =D0=BD=D0=BE=D1=8F 2025 10:59:39=
=0A                Category: Booting=0A                Severity: Major=0A  =
              Priority: 5 - Normal=0A              Item Group: None=0A     =
             Status: None=0A                 Privacy: Public=0A            =
 Assigned to: None=0A         Originator Name:=0A        Originator Email:=
=0A             Open/Closed: Open=0A         Discussion Lock: Any=0A       =
          Release: Git master=0A                 Release:=0A         Reprod=
ucibility: Every Time=0A         Planned Release: None=0A=0A=0A    ________=
_______________________________________________=0A=0AFollow-up Comments:=0A=
=0A=0A-------------------------------------------------------=0ADate: =D0=
=92=D1=82 04 =D0=BD=D0=BE=D1=8F 2025 10:59:39   By: volte <volte>=0AHello,=
=0Alooking at git history, argon2 support finally has been added=0Ahttps://=
cgit.git.savannah.gnu.org/cgit/grub.git/commit/?id=3D6052fc2cf684dffa507a9d=
81f9f8b4cbe170e6b6=0A=0AI decided to test it, but unfortunately I get "Too =
large md context" error,=0Aafter entering the password. Can you explain wha=
t this error is and how to fix=0Ait? I did not find any useful information =
on the web.=0AThe problem is not related to efi file size.=0A=0AI usually u=
se a third-party implementation from here=0Ahttps://aur.archlinux.org/packa=
ges/grub-improved-luks2-git=0A=0AThere is no problem with it , everything w=
orks fine, but when you added the=0Aimplementation of Argon2 this version a=
lso can not be builded from the source=0Abecause of the patch conflict.=0A=
=0AI use GUID partition table , luks2 Argon2id and whirlpool hash if it=0Ai=
mportant.=0A=0AHere my install command:=0A=0Asudo grub-install --modules=3D=
"gcry_sha256 gcry_sha512 gcry_whirlpool argon2=0Abtrfs crypto cryptodisk di=
sk hashsum luks luks2 part_gpt part_msdos=0Agcry_rijndael zstd password_pbk=
df2 gcry_crc search_fs_uuid search_label tpm"=0A--target=3Dx86_64-efi --efi=
-directory=3D/boot/efi --bootloader-id=3DArch --recheck=0A=0AThe problem is=
 directly related to the efi file, which is created after this=0Acommand. I=
f I use the efi file obtained after installing grub-improved-luks2=0Aeveryt=
hing will work properly.=0A=0Ain /etc/default/grub=0A=0A# Preload both GPT =
and MBR modules so that they are not missed=0AGRUB_PRELOAD_MODULES=3D"crypt=
odisk part_gpt part_msdos luks2"=0A=0A# Uncomment to enable booting from LU=
KS encrypted devices=0AGRUB_ENABLE_CRYPTODISK=3Dy=0A=0AThank you for your a=
ttention and hope for your help.=0A=0A=0A=0A=0A=0A=0A=0A    _______________=
________________________________________=0A=0AReply to this item at:=0A=0A =
 <https://savannah.gnu.org/bugs/?67668>=0A=0A______________________________=
_________________=0A=D0=A1=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5 =
=D0=BE=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BE =D0=BF=D0=BE S=
avannah=0Ahttps://savannah.gnu.org/=0A
--8323329-924028875-1762253984=:4118936
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaQncoAAKCRCqLAuaBUf3
TjNKAQCRrodIz2ZgqJsFw0U+iAcgDwRwjTdk9iqHLEygOXnCXwEAr8IYp7hrS2oi
7ogFI7qx3/gbli0azu+KL878Y1IbVAc=
=iTqL
-----END PGP SIGNATURE-----

--8323329-924028875-1762253984=:4118936--