[CentOS] HP Envy EFI problem after BIOS update

Gary Stainburn gary at ringways.co.uk
Wed Sep 14 13:47:03 UTC 2016


Hi Jim,

Thanks for this.  I looked into what you said, and once happy I ran the 
command you gave.  It appeared to work as it did not come up with any errors, 
and the output from efibootmgr showed
1) Centos had been added as an option and 
2) it was the first in the boot sequence.

However, when I rebooted the laptop went straight into Win8, and after 
rebooting back into KDE Live, the option is no longer there.

This is the output after rebooting.

[root at localhost liveuser]# efibootmgr 
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2002,0002,3002,0001,2001,2003
Boot0000* Internal CD/DVD ROM Drive (UEFI)
Boot0001* Fedora
Boot0002* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
[root at localhost liveuser]# 


This is me having a second attempt at your instructions.   As you can see, it 
looks positive.

[root at localhost liveuser]# efibootmgr -c -d /dev/sda -p 
1 -L "CentOS" -l '\EFI\centos\shim.efi'
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0003,2002,0002,3002,0001,2001,2003
Boot0000* Internal CD/DVD ROM Drive (UEFI)
Boot0001* Fedora
Boot0002* Windows Boot Manager
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
Boot3002* Internal Hard Disk or Solid State Disk
Boot0003* CentOS
[root at localhost liveuser]# 

I have had a look at /boot and can see in there the centos directory, but not 
a Fedora one. Is this not the boot fs from the hss?

[root at localhost liveuser]# ll /boot/efi/EFI/
total 8
drwxr-xr-x. 2 root root 4096 Sep  6 11:32 BOOT
drwxr-xr-x. 3 root root 4096 Sep  6 11:32 centos
[root at localhost liveuser]# ll /boot/efi/EFI/centos/
total 5772
-rw-r--r--. 1 root root     128 Dec  7  2015 BOOT.CSV
drwxr-xr-x. 2 root root    4096 Sep  6 11:32 fonts
-rwxr-xr-x. 1 root root 1009536 Jan  5  2016 gcdx64.efi
-rwxr-xr-x. 1 root root 1009536 Jan  5  2016 grubx64.efi
-rw-r--r--. 1 root root 1283952 Dec  7  2015 MokManager.efi
-rw-r--r--. 1 root root 1291512 Dec  7  2015 shim-centos.efi
-rw-r--r--. 1 root root 1296176 Dec  7  2015 shim.efi
[root at localhost liveuser]# 



On Wednesday 14 September 2016 14:09:35 Jim Perrin wrote:
> In some BIOS/firmwares you'll have the option to 'add' an entry, and you
> can just point a new one to EFI/centos/shim.efi, save and be done with it.
>
> Otherwise you can do something like:
>
> efibootmgr -c -d /dev/sda -p 1 -L "CentOS" -l '\EFI\centos\shim.efi'
>
>
> there are a couple efi files inside /boot/efi/EFI/centos, but shim is
> the one to point to for secureboot to work properly.
>



More information about the CentOS mailing list