Where on earth is there a straightforward explanation of useing efibootmgr to boot? (including some fundamental explanations)?

ClientAlive

Honorable
Nov 8, 2013
2
0
10,510
There used to be some arch linux wikis that gave enough information (barely enough) to eventually figure out how to use efibootmgr on your uniquely designed system (that was about 6 mos ago iirc). Now I can't seem to find much at all in the arch literature (or anywhere else for that matter).

The location of my kernel is /boot/efi and to it is mounted /dev/sda1 (fat 32 fs for the efi system partition). The initramfs is (supposedly) embedded into the kernel and is uncompressed (though I'm a little iffy on whether I did this correctly or not). So, /boot/efi does not necessarily follow any example given and I haven't found a good example of the efi path convention to make the adjustment on my own. (I get that backslashes are used instead of forward slashes but sometimes it looks as if my path is to be appended to a couple existing nodes: ie: \EFI\EFI\my\unique\path). ?? Also, I'm unsure where the root path should be included (ie: in the efibootmgr entry? In the kernel? In both places?). Root is /dev/system/mapper-root btw (root is in a logical volume).

I thought I was ready to boot this gentoo-hardened install but it aint bootin' There are a number of reasons that could cause it not to boot but I thought I'd start with the simplest thing, my efibootmgr entry, and make sure it's done properly before I move on to other possible causes.

Can anyone help?

Thanks in advance
 

ClientAlive

Honorable
Nov 8, 2013
2
0
10,510
ex_bubblehead said:
There's plenty of documentation available, you just have to do a little legwork:

For example, the first thing that turn up in a Google search ("Gentoo install on UEFI"): http://wiki.gentoo.org/wiki/UEFI_Gentoo_Quick_Install_G...


Yes, some of the pages I've looked at include the one you linked, and:

http://wiki.gentoo.org/wiki/EFI_stub_kernel
https://wiki.archlinux.org/index.php/Unified_Extensible...
https://wiki.archlinux.org/index.php/Boot_Loaders

Each with some fascet that doesn't make sense to me and/or some part that is irrelevant to my design (ie: the existance of a bootloader whatsoever). I installed arch a few mos ago (before this gentoo install) and it was uefi install on the same machine I'm doing the gentoo install on now. It, however was a bit different in design/approach. For instance, iirc, there was a root="*" in the command for efibootmgr with the arch install before. Now that is not part of the comand given in the gentoo EFI stub kernel link; but, the designs are different as well (with the arch install I remember that my initramfs was separate from the kernel but with the design in the gentoo stub kernel page they have you embedding the initramfs in the kernel and uncompressed - something I haven't done before).

Now, that gentoo stub kernel page is the design I followed and the page I went off of (to embed the initramfs in the kernel as uncompressed and I used the efibootmgr command given in that page).

More broadly speaking, afaik, the issue may be one or both of two things. (1) It may be that I made a mistake with efibootmgr and/or (2) It may be that I made a mistake with the initramfs (which itself involves at least two areas - the kernel config and genkernel <- my choice for kernel/initramfs compilation). So, a somewhat complex problem (to me at least). < complex as in interrelated parts involved in the problem - not 'complicated' as in insufmountable >

Fwiw, I am quite ignorant of the proper kernel config options to use when attempting the design shown in gentoo efi stub kernel page. Because of that, it is my biggest area of concern. I had chosen the efibootmgr area to start with because I am most familiar with it and becuse it seems it may be the simplest to deal with. At the end of the day though, I can see the problem lying in any of the three areas mentioned above (and possible some other area(s) that I'm unaware of).