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

Unable to load EFISTUB 5.9 kernel #26

Closed
marlock9 opened this issue Nov 14, 2020 · 1 comment
Closed

Unable to load EFISTUB 5.9 kernel #26

marlock9 opened this issue Nov 14, 2020 · 1 comment

Comments

@marlock9
Copy link

I'm unable to boot recent (> 5.7) kernels with your xfs (probably f2fs too) driver.
Refind output is: ERROR: buffer too small
If I try to load from EFI shell, then I got:

ERROR: Unable to load file info
ERROR: Unable to load initramfs

5.4.77 kernel boots via both Refind and EFI Shell. Both 5.4.77 and 5.9.8 boot via GRUB 2.04.
I don't know how to get any debug logging for this, set FS_LOGGING 4 doesn't apply to this.

xfs driver v1.5
Archlinux, kernel 5.9.8
MoBo MSI Z390 MPG Gaming Edge

@pbatard
Copy link
Owner

pbatard commented Sep 3, 2022

See #38#issuecomment-1236164699

This is basically a kernel issue with the fixed size structure they are using to retrieve the initrd/initramfs data.
Now, we could work around this in EfiFs by reducing the default size of our own structure, and we probably will do that, but ultimately, the kernel should not expect that the Info buffer's MAX_FILE_NAME_LEN will be less than 512 bytes, especially as there are counter examples of this in the UEFI code...

@pbatard pbatard closed this as completed in d31ec7b Sep 5, 2022
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

2 participants