This behavior started with the the upgrade to kernel 5.18.13. I can boot normally into bootmgfw.efi via the bios. However, now via Grub I get the blue-boxes Win logo and it freezes.
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os
$menuentry_id_option 'osprober-efi-1341-9D26' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 1341-9D26
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
# Other OS found, undo autohiding of menu unless menu_auto_hide=2
if [ "${orig_timeout_style}" -a "${menu_auto_hide}" != "2" ]; then
set timeout_style=${orig_timeout_style}
set timeout=${orig_timeout}
fi
### END /etc/grub.d/30_os-prober ###
Thoughts?
I run sudo grub2-mkconfig -o /boot/grub2/grub.cfg, but that hasn’t helped.
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-42F8-BF3E' {
insmod part_gpt
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 42F8-BF3E
else
search --no-floppy --fs-uuid --set=root 42F8-BF3E
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
# Other OS found, undo autohiding of menu unless menu_auto_hide=2
if [ "${orig_timeout_style}" -a "${menu_auto_hide}" != "2" ]; then
set timeout_style=${orig_timeout_style}
set timeout=${orig_timeout}
fi
### END /etc/grub.d/30_os-prober ###
I see the menuentry line is broken in two with what you posted. It must be a single line from menuentry through the {.
I also see an if - else - fi portion in mine that is missing from yours, though that is not likely to be the actual issue.
Try (after booting) deleting the /boot/grub2/grub.cfg file then repeat the sudo grub2-mkconfig -o /boot/grub2/grub.cfg command to see if it builds it properly that time.
If it still freezes after that then you may need to do a windows repair.