You are not logged in.

#1 2022-12-10 19:00:28

xerxes_
Member
Registered: 2018-04-29
Posts: 712

[SOLVED] Is there always need to reinstall grub after update?

From some time, when grub is updated, there is a message:

:: To use the new features provided in this GRUB update, it is recommended
   to install it to the MBR or UEFI. Due to potential configuration
   incompatibilities, it is advised to run both, installation and generation
   of configuration:
     $ grub-install ...
     $ grub-mkconfig -o /boot/grub/grub.cfg

Is it really needed to reinstall grub after every grub update, like it was with lilo in the past? Maybe it depends whether someone use BIOS or UEFI or any other grub option?

Last edited by xerxes_ (2022-12-12 18:09:49)

Offline

#2 2022-12-10 19:08:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,805

Re: [SOLVED] Is there always need to reinstall grub after update?

When grub itself is updated, yes, you have to install it if you want to use the new version. The package doesn't install things to the boot sector/ESP, it just installs things to be able to install it there.

It's not like lilo where you had to reinstall it on every kernel update, that was because lilo wasn't filesystem aware and it had to know the offset of where to find the kernel.

Last edited by Scimmia (2022-12-10 19:08:35)

Offline

#3 2022-12-10 22:28:02

xerxes_
Member
Registered: 2018-04-29
Posts: 712

Re: [SOLVED] Is there always need to reinstall grub after update?

So grub should boot the system event without it's reinstall, isn't it? And new version of grub, maybe with new (security) features, would be important for system with UEFI, but not for system with BIOS, where there in no new features?

Offline

#4 2022-12-11 00:16:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,144

Re: [SOLVED] Is there always need to reinstall grub after update?

xerxes_ wrote:

So grub should boot the system event without it's reinstall, isn't it? And new version of grub, maybe with new (security) features, would be important for system with UEFI, but not for system with BIOS, where there in no new features?

No. That was the point. The update broke booting.  As far as I know, it makes no odds whether you are using UEFI or BIOS booting. It's about changes to grub's configuration options and ensuring grub's config can be understood by the installed grub.

Last edited by cfr (2022-12-11 00:18:13)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2022-12-11 00:23:31

lenhuppe
Member
From: New Hampshire USA
Registered: 2018-12-10
Posts: 273
Website

Re: [SOLVED] Is there always need to reinstall grub after update?

xerxes_ wrote:

So grub should boot the system event without it's reinstall, isn't it? And new version of grub, maybe with new (security) features, would be important for system with UEFI, but not for system with BIOS, where there in no new features?

There is no pacman hook to reinstall and reconfigure grub because it can be configured many different ways.
You have the option of creating your own pacman hook to reinstall and reconfigure grub automagically.

Last edited by lenhuppe (2022-12-11 00:24:31)


Why do we drive on the parkway and then park in the driveway?

Offline

#6 2022-12-11 18:28:07

webcapcha
Member
Registered: 2019-02-14
Posts: 141

Re: [SOLVED] Is there always need to reinstall grub after update?

Is that sufficient to run grub-install followed by grub-mkconfig? Or additional steps required?


Ukrainian

Offline

#7 2022-12-11 19:53:25

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,144

Re: [SOLVED] Is there always need to reinstall grub after update?

webcapcha wrote:

Is that sufficient to run grub-install followed by grub-mkconfig? Or additional steps required?

I believe that is sufficient. It was 1 step. Now it is 2.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB