grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [2.00] grub-install use on UEFI system?


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: [2.00] grub-install use on UEFI system?
Date: Wed, 26 Sep 2012 08:21:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120922 Icedove/10.0.7

On 25.09.2012 20:42, address@hidden wrote:

> 
> 
> 2012/9/25 Chris Murphy <address@hidden
> <mailto:address@hidden>>
> 
> 
>     On Sep 25, 2012, at 6:17 AM, address@hidden
>     <mailto:address@hidden> wrote:
>>
>>     With 1.99, i only had to use 'grub-install' (without any
>>     parameter, and not necessarily booted in EFI mode).
>>     It would be nice (for retrocompatibility) if 2.00 could do the
>>     same (eg it could guess the 32/64 architecture, and set
>>     --efi-directory to /boot/efi by default).
> 
>     It's not that simple. /boot/efi is just a mount point for the EFI
>     System partition. grub.efi can't free float on that partition, it
>     won't be found. It needs to go in /efi/grub or /efi/fedora or
>     /efi/suse or whatever, per the UEFI spec. I think for upstream grub
>     it probably would be <mountpoint>/efi/grub. And then each
>     distribution can modify so their grub-install will place grub.efi in
>     the distribution specific location on the EFI System partition.
> 
> 
> Thanks Chris,
> 
> I agree that GRUB needs to know in which ESP's sub-folder (eg
> /efi/fedora) it needs to create the grub*.efi file, but then i wonder:
> 
> 1) why does 'grub-install' (without any parameter) work for Ubuntu12.04
> (grub1.99) ?

Probably because your kernel doesn't handle EFI properly so grub-install
wasn't able to detect it (/sys/firmware/efi was missing). For older
versions only one flavour of GRUB could be installed at a time.

> 2) why does the command indicated by Aaron for 2.00 (grub-install
> --target=x86_64-efi --efi-directory="<root efi directory, eg.
> /boot/efi>") does not specify this sub-folder ?
> 

Because this is not part of efi-directory (and RTFM)

> Regards
> Yann
> 
> 
> 
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel



-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]