On Aug 27, 2015 5:58 AM, "Paul Cartwright" <pbcartwright(a)gmail.com>
wrote:
ok, I am running fedora 22, along with ubuntu & Windows 10. a new kernel
got installed last night, and I rebooted, but grub doesn't show it, and
still defaults to the ubuntu OS. I am new to this efibootmgr, and google
is letting me down.. This is all new to me, and I am having a problem
understanding what I need to do now...
#df -h
/dev/sda10 46G 8.3G 36G 19% /
/dev/sdb6 154G 80G 67G 55% /home
/dev/sda8 95M 9.5M 86M 11% /boot/efi
grub2-mkconfig works, but grub2-install /dev/sda gives me an error
grub2-install /dev/sda
grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist.
Please specify --target or --directory.
this shows that the default is ubuntu. all I want is to update this &
make the
newest fedora kernel the default.
# efibootmgr -v
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0003,0000,0001
Boot0000* P0: WDC WD10EZEX-75M2NA0 BBS(17,,0x0)
Boot0001* P4: TSSTcorp DVD+/-RW SH-216DB BBS(19,,0x0)
Boot0002* Fedora
HD(8,GPT,ac2fc695-5de9-47d0-a19b-01e236404130,0x5ae5d800,0x2f800)/File(\EFI\fedora\shim.efi)
Boot0003* Windows Boot Manager
HD(1,GPT,4cc2fdac-58ea-400c-8ef9-11e13499addf,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...9................
Boot0004* ubuntu
HD(1,GPT,4cc2fdac-58ea-400c-8ef9-11e13499addf,0x800,0xfa000)/File(\EFI\ubuntu\shimx64.efi)
Boot000C* UEFI OS
HD(1,GPT,4cc2fdac-58ea-400c-8ef9-11e13499addf,0x800,0xfa000)/File(\EFI\BOOT\BOOTX64.EFI)
Boot0016* UEFI OS
HD(8,GPT,ac2fc695-5de9-47d0-a19b-01e236404130,0x5ae5d800,0x2f800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot001A* ubuntu
HD(1,GPT,4cc2fdac-58ea-400c-8ef9-11e13499addf,0x800,0xfa000)/File(\EFI\Ubuntu\grubx64.efi)
>
>
>
> #efibootmgr -o 0004,0003,0000,0001
> BootCurrent: 0004
> Timeout: 0 seconds
> BootOrder: 0004,0003,0000,0001
> Boot0000* P0: WDC WD10EZEX-75M2NA0
> Boot0001* P4: TSSTcorp DVD+/-RW SH-216DB
> Boot0002* Fedora
> Boot0003* Windows Boot Manager
> Boot0004* ubuntu
> Boot000C* UEFI OS
> Boot0016* UEFI OS
Boot001A* ubuntu
> is there a good manual somewhere for efibootmgr??
> I thought when a new kernel was installed, grub would automagically add
> it... not with efi?
>
> --
> Paul Cartwright
> Registered Linux User #367800 and new counter #561587
>
> --
>
efibootmgr acts on the firmware boot menu. The firmware boots grub, which
lives on the efi system partition (It's a file on a vfat filesystem, not
code in an MBR). grub gives you a menu and boots the kernel.
This means that both ubuntu and fedora can have a grub binary installed,
each with a config file. Figure out which one you are booting first. If
it's the ubuntu grub, this is all expected and you need to manually update
the associated grub.cfg (not the binary, just the config file!) If it's
Fedora, also manually update, but also look into where the kernel failed to
update grub.cfg.
TL;DR: What is the actual full command you used when invoking
grub2-mkconfig ?
--Pete