Grub 2:2.06.r322.gd9b4638c5-1 won't boot and goes straight to the BIOS after update

who does not like it.

By definition, it is software and programming, so there will always be bugs!

I was just thinking to write a 2 lines script, let me call it sysupdate.sh

yay -Syu
yay -S grub

So, I will be sure Grub will be reinstalled if there is an update. It won’t hurt if it is installed again I think.

I’m sure there might be an “if” command, if Grub updated then install grub (but I don’t know how-to).

I’m no expert so may I ask do I need to add a 3rd line to the script

grub-mkconfig -o /boot/grub/grub.cfg

In any case, can I just not reboot and maybe reboot some time later with several Grub updates/reinstall?
What you think?