Mailing List Archive

Re-run grub-install to update installed boot code!
Today's routine update says:

Re-run grub-install to update installed boot code!

Is "sudo grub-install" really all I have to do? Grub knows where/how
everthing was originally installed and will do the right thing without
any options?

Or do I have to run grub-install with all the same options that were
originally used to install grub?

[.I use a manually generated grub.cfg file, so I'm ignoring the message
that tells me I to run "grub-mkconfig".]

--
Grant
Re: Re-run grub-install to update installed boot code! [ In reply to ]
Grant Edwards wrote:
> Today's routine update says:
>
> Re-run grub-install to update installed boot code!
>
> Is "sudo grub-install" really all I have to do? Grub knows where/how
> everthing was originally installed and will do the right thing without
> any options?
>
> Or do I have to run grub-install with all the same options that were
> originally used to install grub?
>
> [.I use a manually generated grub.cfg file, so I'm ignoring the message
> that tells me I to run "grub-mkconfig".]
>
> --
> Grant


I been wondering the same since I saw this posted on -dev.  The news
item seems to mention the EFI booting but I'm sure us legacy booting
users need to do the same.  At this point, I may skip updating grub this
week until I know exactly what I'm supposed to do as well.  I'd think we
need to reinstall like when we first did our install but not sure.  :/ 
It would suck to have a unbootable system. 

Dale

:-)  :-) 
Re: Re-run grub-install to update installed boot code! [ In reply to ]
On 2024-02-17, Dale <rdalek1967@gmail.com> wrote:
> Grant Edwards wrote:
>> Today's routine update says:
>>
>> Re-run grub-install to update installed boot code!
>>
>> Is "sudo grub-install" really all I have to do? [...]
>>
>> Or do I have to run grub-install with all the same options that
>> were originally used to install grub?
>
> I been wondering the same since I saw this posted on -dev.  The news
> item seems to mention the EFI booting but I'm sure us legacy booting
> users need to do the same.  At this point, I may skip updating grub
> this week until I know exactly what I'm supposed to do as well.  I'd
> think we need to reinstall like when we first did our install but
> not sure.  :/

That was my guess. I should have recorded the options originally
passed to grub-install. Now that I have BIOS boot partitions (instead
of using embedded blocklists) on all my machines, reinstalling grub
should be trivial. I think all I have to do is tell grub-install the
boot device.

> It would suck to have a unbootable system.

More than once I've had to boot from either systemrescuecd or minimal
gentoo install ISO so I could re-install (or re-configure) grub after
someting gets messed up. It's not difficult, but it is annoying.

--
Grant
Re: Re: Re-run grub-install to update installed boot code! [ In reply to ]
Grant Edwards wrote:
> On 2024-02-17, Dale <rdalek1967@gmail.com> wrote:
>> Grant Edwards wrote:
>>> Today's routine update says:
>>>
>>> Re-run grub-install to update installed boot code!
>>>
>>> Is "sudo grub-install" really all I have to do? [...]
>>>
>>> Or do I have to run grub-install with all the same options that
>>> were originally used to install grub?
>> I been wondering the same since I saw this posted on -dev.  The news
>> item seems to mention the EFI booting but I'm sure us legacy booting
>> users need to do the same.  At this point, I may skip updating grub
>> this week until I know exactly what I'm supposed to do as well.  I'd
>> think we need to reinstall like when we first did our install but
>> not sure.  :/
> That was my guess. I should have recorded the options originally
> passed to grub-install. Now that I have BIOS boot partitions (instead
> of using embedded blocklists) on all my machines, reinstalling grub
> should be trivial. I think all I have to do is tell grub-install the
> boot device.
>
>> It would suck to have a unbootable system.
> More than once I've had to boot from either systemrescuecd or minimal
> gentoo install ISO so I could re-install (or re-configure) grub after
> someting gets messed up. It's not difficult, but it is annoying.
>
> --
> Grant


I updated my NAS box OS.  It updated grub as well.  I figured it would
be a good test system.  All I did was this:


nas / # grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
nas / #


I rebooted the system and it booted just fine here.  According to ls,
files in ls /boot/grub/i386-pc/ were updated.  They had today's date. 

So, I guess it is pretty simple.  Now to remember doing this.  Heck,
I've never paid much attention to grub updating before. 

Dale

:-)  :-)