Re: [gentoo-user] Re: Re-run grub-install to update installed boot code!

2024-02-18 Thread Dale
Grant Edwards wrote:
> On 2024-02-17, Dale  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

:-)  :-) 



[gentoo-user] Re: Re-run grub-install to update installed boot code!

2024-02-17 Thread Grant Edwards
On 2024-02-17, Dale  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