1 |
On 4.2.2013 23:59, Greg KH wrote: |
2 |
> On Mon, Feb 04, 2013 at 11:45:22PM +0100, Martin Pluskal wrote: |
3 |
>> On 4.2.2013 23:34, Greg KH wrote: |
4 |
>>> On Mon, Feb 04, 2013 at 08:13:58PM +0100, Martin Pluskal wrote: |
5 |
>>>> Hi |
6 |
>>>> I am curious what is the proper path for installation of efi binaries |
7 |
>>>> (such as shim.efi) in gentoo. I don't think that installing them |
8 |
>>>> directly into /boot/efi... is proper way - it seems to me that |
9 |
>>>> /usr/lib64/efi or /usr/libexec/efi is more appropriate location for |
10 |
>>>> them. What's your opinion? |
11 |
>>> |
12 |
>>> It depends on if you want the bootloader to use the binary or not. If |
13 |
>>> you do, it needs to be in /boot/efi/, otherwise it will never be able to |
14 |
>>> be run by the UEFI system. |
15 |
>> Well, in order to boot you have to place .efi into /boot/efi, I am not |
16 |
>> sure if it is the best idea to directly install everything with .efi |
17 |
>> into /boot/efi. As far as I know, elilo is installed into /usr/lib/elilo |
18 |
>> and grub2 is placed into /boot/efi by grub2-install. |
19 |
> |
20 |
> If elilo is in /usr/lib/elilo, the UEFI bios can not run the binary as |
21 |
> it can't even see the filesystem to read the binary from. |
22 |
Well it cannot, elilo.efi has to be placed to /boot/efi, install path is |
23 |
however /usr/lib/elilo/elilo.efi. |
24 |
> |
25 |
> So how can anything that is .efi _not_ be in /boot/efi and still work? |
26 |
I am talking about location to which .efi is supposed to be placed after |
27 |
installation, not necessary from which it can work. |
28 |
> |
29 |
> Have you tried this out on your system with any success? |
30 |
Why would I try it? I am not suggesting that it would work. After you |
31 |
emerge elilo or grub2 you are still not able to boot unless you do other |
32 |
steps (grub2-install or cp elilo.efi /boot/efi... && efibootmgr ... etc.) |
33 |
> |
34 |
> What exactly is the issue you are trying to solve here? |
35 |
I am thinking about creating ebuild for shim. I was wondering if there |
36 |
is any policy or suggestion where to place .efi binaries or how to |
37 |
handle them in gentoo - it seems that there is none so perhaps there |
38 |
should be agreed on what best practice is (install directly into |
39 |
/boot/efi or install else and let user manually copy .efi to /boot/efi |
40 |
or something completely different (eselect efi ...)). |
41 |
|
42 |
In suse default path is for example /usr/lib64/efi/: |
43 |
ls /usr/lib64/efi/: |
44 |
MokManager.efi elilo.efi shim-suse.efi shim.efi |
45 |
xen-4.2.1_02-0.7.2.efi xen-4.2.efi xen-4.efi xen.efi |
46 |
|
47 |
yet /boot/efi contains only elilo.efi |
48 |
> |
49 |
> thanks, |
50 |
> |
51 |
> greg k-h |
52 |
> |
53 |
thanks |
54 |
|
55 |
Martin |