Skip to content
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

Initramfs: Invalid content for hash comparison #78

Open
DasRoteSkelett opened this issue Oct 10, 2024 · 0 comments
Open

Initramfs: Invalid content for hash comparison #78

DasRoteSkelett opened this issue Oct 10, 2024 · 0 comments

Comments

@DasRoteSkelett
Copy link

Hello!

I have been putting much time and effort to debug and understand the bug, that lead to this error message:

Invalid content for hash comparison
failed to verify file buffer (err: 0x800000000000001a)
error: failed to verify initrd /initrd.

Press any key to continue...

The error is EFI_SECURITY_VIOLATION from the EFI Error codes. Funnily, all the other files (grub.cfg, bzImage) could get verified okay and also my "simple example" just using meta-secure-core worked.
Finally, I found the cause of the error: grub uncompressed the cpio.gz initrd and compared the extracted contents with the signature of the compressed initrd. The difference was, that I am using squash4 module of grub since I am using squashfs for the target system.

The workaround is to set the INITRAMFS_FSTYPES to for example cpio.

I just wanted to leave this here as a caveat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant