UPDATE
Another thread on how to do it automatically through hook. Grub Hook to grub-install and grub-mkconfig?
Thanks to everybody who assisted me to do it.
Since then I never had a problem with Grub.
Hi guys,
I believe there was a Grub update a few minutes ago.
What I currently have installed is:
1 core/grub 2:2.06.r334.g340377470-1 (6.8 MiB 33.0 MiB) (Installed)
I believe I could read it right as the Arch website shows the same number grub 2:2.06.r334.g340377470-1 and date of today and time currently an hour ago!
I am posting this mainly to thank @manuel for his assistance about the script I was trying to do. And of course to thank @dalto for his guidance about the Grub issue and hope this will be of any help.
BUT as usual I have to say use at your own risk. I am just a noob, I am not a developer. So it is up to you.
If anybody took the risk please let me know how it went.
Continuing the discussion from Grub 2:2.06.r322.gd9b4638c5-1 won't boot and goes straight to the BIOS after update:
Another reason for posting, is hoping this can help.
What I did was making the script above and created a .desktop file I called sysupdate.desktop
and added it as a button to my toolbar (I am on KDE Plasma)
I stopped completely using yay -Syu
to update the system and update only through the script by pressing the button on the toolbar.
I am glad to report back that I just updated and noticed there was a Grub update, it appears to me that it updated Grub then according to the if
statement (that I did not know how to do it) the 2 commands that should be run after a Grub update ran automatically and I rebooted normally.
This script succedded in making the Grub update or system update in general as smooth as before without need of me doing anything.
I still remember @dalto suggested better use “hook” to do it. Still I need to do my homework on how to do it.
I hope this helps anybody who cares about Grub and was worried about breaking.
Anybody updated? Grub update? Issued the 2 commands after update? I hope you booted safely.
I believe it is OK now.