public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Re-run grub-install to update installed boot code!
@ 2024-02-16 14:55 Grant Edwards
  2024-02-17 11:29 ` Dale
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2024-02-16 14:55 UTC (permalink / raw
  To: gentoo-user

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Re-run grub-install to update installed boot code!
  2024-02-16 14:55 [gentoo-user] Re-run grub-install to update installed boot code! Grant Edwards
@ 2024-02-17 11:29 ` Dale
  2024-02-17 20:31   ` [gentoo-user] " Grant Edwards
  0 siblings, 1 reply; 4+ messages in thread
From: Dale @ 2024-02-17 11:29 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-) 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: Re-run grub-install to update installed boot code!
  2024-02-17 11:29 ` Dale
@ 2024-02-17 20:31   ` Grant Edwards
  2024-02-18 16:55     ` Dale
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2024-02-17 20:31 UTC (permalink / raw
  To: gentoo-user

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Re: Re-run grub-install to update installed boot code!
  2024-02-17 20:31   ` [gentoo-user] " Grant Edwards
@ 2024-02-18 16:55     ` Dale
  0 siblings, 0 replies; 4+ messages in thread
From: Dale @ 2024-02-18 16:55 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-) 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-18 16:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-16 14:55 [gentoo-user] Re-run grub-install to update installed boot code! Grant Edwards
2024-02-17 11:29 ` Dale
2024-02-17 20:31   ` [gentoo-user] " Grant Edwards
2024-02-18 16:55     ` Dale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox