Re: How to install new kernels in grub?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/29/24 15:02, Go Canes wrote:
On Tue, Oct 29, 2024 at 4:39 PM ToddAndMargo via users
<users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
That is what I did.  Did ot work:

# grub2-install  /dev/nvme0n1 --force

If you are using UEFI, grub2-install is essentially a no-op (unless
something weird is going on).  Here's why....

Take a look at the output of "sudo efibootmgr" - it will show you the
UEFI boot variables and which one you are currently booted from.

The variable you are booted from should look something like this:
   Boot0000* Fedora
HD(1,GPT,166f3bf1-cd4a-487e-906a-2b0363cbabcd,0x800,0x64
000)/\EFI\FEDORA\SHIMX64.EFI
- This tells you that UEFI used a "Hard Drive" to boot, Hard Drive #1,
using a GPT partition table, and the partition with the specified UUID
(166f3bf1-cd4a-487e-906a-2b0363cbabcd in this example).  Note that
this partition must be "vfat", so filenames are case-insensitive.
- From that partition, it loads the file "\EFI\FEDORA\SHIMX64.EFI".
- That file in turn continues the bootstrap.  For this specific case,
SHIMX64.EFI loads grubx64.efi from the same directory, which
references grub.cfg from the same directory.
- grub.cfg tells grub how to find /boot, which it uses to find
/boot/grub2/grub.cfg
- etc.

Note something that is *not* referenced in this process - a MBR boot
record.  What does grub2-install do?  It installs grub2 into the MBR
boot record.  (It *might* do other things as well, but I don't believe
rebuilding the grub2 menu is not one of them.)

Hope this helps you or anyone else trying to understand why
grub2-install is not typically needed or useful on a UEFI system.


Cool command.  Thank you!


Does this tell you anything?

# efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0010,0003,0004,000E,000F

Boot0000* fedora HD(1,GPT,6e58cd53-8fbd-4b97-bce2-fa7c43e105f3,0x800,0x64000)/\EFI\FEDORA\GRUBX64.EFI

Boot0003 Network Card BBS(Network,,0x0)0000474f00004e4fb1000000010000007100490042004100200043004c00200053006c006f0074002000300030004600450020007600300031003100300000000501090006000000007fff040001041a00ae84b11df581724e85442bab0c2cac5c001f060200007fff040001044200ef47642dc93ba041ac194d51d01b4ce6490042004100200043004c00200053006c006f0074002000300030004600450020007600300031003100300000007fff04000000424f

Boot0004 UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)0000424f

Boot000E CD/DVD Drive BBS(CDROM,,0x0)0000474f00004e4fa9000000010000006f00410054004100500049002000200020006900480041005300310032003400200020002000460000000501090003000000007fff040002010c00d041030a0000000001010600001703120a000200ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce6350033003400320032003700200038004e003200370038003700320030003500300036003600340000007fff04000000424f

Boot000F Hard Drive BBS(HD,,0x0)0000474f00004e4fa7000000010000006f0054004f00530048004900420041002000440054003000310041004300410032003000300000000501090002000000007fff040002010c00d041030a0000000001010600001703120a000100ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce6200020002000200020002000200020002000200037002000460034004d005800480048005300540000007fff04000000424f

Boot0010* Fedora HD(1,GPT,6e58cd53-8fbd-4b97-bce2-fa7c43e105f3,0x800,0x64000)/\EFI\FEDORA\SHIM.EFI0000424f

--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux