URL:
  <https://savannah.gnu.org/bugs/?67668>

                 Summary: GRUB 2.14_rc1 "Too large md context" error when boot
with custom LUKS2
                   Group: GNU GRUB
               Submitter: volte
               Submitted: Вт 04 ноя 2025 10:59:39
                Category: Booting
                Severity: Major
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Git master
                 Release:
         Reproducibility: Every Time
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Вт 04 ноя 2025 10:59:39   By: volte <volte>
Hello,
looking at git history, argon2 support finally has been added
https://cgit.git.savannah.gnu.org/cgit/grub.git/commit/?id=6052fc2cf684dffa507a9d81f9f8b4cbe170e6b6

I decided to test it, but unfortunately I get "Too large md context" error,
after entering the password. Can you explain what this error is and how to fix
it? I did not find any useful information on the web.
The problem is not related to efi file size.

I usually use a third-party implementation from here
https://aur.archlinux.org/packages/grub-improved-luks2-git

There is no problem with it , everything works fine, but when you added the
implementation of Argon2 this version also can not be builded from the source
because of the patch conflict.

I use GUID partition table , luks2 Argon2id and whirlpool hash if it
important.

Here my install command:

sudo grub-install --modules="gcry_sha256 gcry_sha512 gcry_whirlpool argon2
btrfs crypto cryptodisk disk hashsum luks luks2 part_gpt part_msdos
gcry_rijndael zstd password_pbkdf2 gcry_crc search_fs_uuid search_label tpm"
--target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Arch --recheck

The problem is directly related to the efi file, which is created after this
command. If I use the efi file obtained after installing grub-improved-luks2
everything will work properly.

in /etc/default/grub

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="cryptodisk part_gpt part_msdos luks2"

# Uncomment to enable booting from LUKS encrypted devices
GRUB_ENABLE_CRYPTODISK=y

Thank you for your attention and hope for your help.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67668>

_______________________________________________
Сообщение отправлено по Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to