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

grub2: Backport fix for 2038 bug on FAT fs #132

Merged

Conversation

chaitu236
Copy link

@chaitu236 chaitu236 commented Aug 27, 2024

Backport commit [1] from upstream to fix grub not being able to detect FAT filesystems containing directories whose modification times are later than 2038.

[1] https://git.savannah.gnu.org/gitweb/?p=grub.git;a=commit;h=e43f3d93b28cce852c110c7a8e40d8311bcd8bb1

WI: AB#2839385

Testing

  • Built grub-efi recipe.
  • Replaced bootx64.efi with the one from from grub-efi's ipk and verified that a VM provisioned after 2038 can boot (it used to fail without this fix).

Note

  • Do not cherry-pick into nilrt/master/next. nilrt/master/next uses grub 2.12 which already has the fix.
  • I intend to submit this to OE upstream after testing on poky.

@chaitu236 chaitu236 requested a review from a team August 27, 2024 23:15
@chaitu236 chaitu236 force-pushed the dev/cvadrevu/grub_2038 branch from baa5527 to 326aedb Compare August 28, 2024 20:28
A issue was found when I run "runqemu genericx86-64 ovmf", grub failed
to boot, it's a known issue has been fixed in grub upstream, backport
the fix.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 51eab4b)
Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@ni.com>
@chaitu236 chaitu236 force-pushed the dev/cvadrevu/grub_2038 branch from 326aedb to bfeeb44 Compare August 28, 2024 22:39
@chaitu236
Copy link
Author

v2: Turns out OE upstream master already had this backport https://git.openembedded.org/openembedded-core/commit/meta/recipes-bsp/grub/files?id=51eab4bb0cae46c9c32d28986eb97badf47594b7 before it upgraded to grub 2.12 (at which point the patch was deleted).

So just cherry-picked this commit from OE upstream.

Sent upstream patch for cherry-picking to kirkstone - https://lists.openembedded.org/g/openembedded-core/topic/kirkstone_patch_grub/108151911

@chaitu236 chaitu236 merged commit 604c451 into ni:nilrt/master/kirkstone Aug 28, 2024
@chaitu236 chaitu236 deleted the dev/cvadrevu/grub_2038 branch August 28, 2024 22:50
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

Successfully merging this pull request may close these issues.

3 participants