[CentOS] UEFI boot manager sequence problems HP Envy

Thu May 30 12:35:41 UTC 2019
Gary Stainburn <gary.stainburn at ringways.co.uk>

On Thursday 30 May 2019 13:16:37 Jonathan Billings wrote:

> This is all I was asking you to check.  See the PARTUUID in the output
> of blkid?  PARTUUID="14c4ac1d-abd8-4121-84ee-c05a825920de"
> It matches the UUID of the boot entry:
> HD(2,GPT,14c4ac1d-abd8-4121-84ee-c05a825920de,0x145800,0x6400\0)/File(\EFI\centos\shim.efi)
> I do see you have 4 separate boot entries for Linux (one oddly called
> fedora despite using the CentOS shim), you might do well to narrow
> them down to just one. 
> (efibootmgr -B -b <bootnum>)

I had already started this process, as I read on a post that deleting an option (or adding one) could possibly fix a corrupt database. I have now deleted all unrequired options.

> If your BIOS has the ability to choose to boot from a file, I suggest
> giving that a try, and try both /EFI/centos/shim.efi and
> /EFI/centos/grubx64.efi.  Perhaps one or the other isn't working
> anymore. 

I tried the option to boot from an EFI file.  All I got was:


I had the option to press enter to select an entry, which I did, and navigated to /EFI/centos/shim.efi.

Doing this saw Centos boot successfully.  Presumably this means that the selected file is valid, but not being used.  

This is the current output from efibootmgr, but still does not give me what I want, and resets on restart.  The options I deleted have stayed deleted though.

Boot3000* Internal Hard Disk or Solid State Disk                                                                                                             
[root at gary ~]# efibootmgr -v
BootCurrent: 0004                                                                                                                                            
Timeout: 4 seconds                                                                                                                                           
BootOrder: 2001,2002,0004                                                                                                                                    
Boot0002* Windows Boot Manager  HD(2,GPT,14c4ac1d-abd8-4121-84ee-c05a825920de,0x145800,0x64000)/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.}....................                                             
Boot0004* CentOS Linux  HD(2,GPT,14c4ac1d-abd8-4121-84ee-c05a825920de,0x145800,0x64000)/File(\EFI\centos\shim.efi)                                           
Boot2001* USB Drive (UEFI)      RC                                                                                                                           
Boot2002* Internal CD/DVD ROM Drive (UEFI)      RC                                                                                                           
Boot3000* Internal Hard Disk or Solid State Disk        RC                                                                                                   
[root at gary ~]#