grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* grub-lnstall option (UEFI) for chainloading
@ 2015-03-29 12:11 Barry Jackson
  2015-03-29 13:12 ` Andrei Borzenkov
  0 siblings, 1 reply; 12+ messages in thread
From: Barry Jackson @ 2015-03-29 12:11 UTC (permalink / raw)
  To: grub-devel

Hello,
Currently when installing grub2 on UEFI, the running system's grub2 
writes an entry to the ESP making it the controlling grub.

Can an option to grub2-install be added that installs only to 
/boot/grub2 and creates core.efi, but does *not* write into the ESP?

This would provide similar functionality to the --no-bootsector option 
used in PC-BIOS systems for using a Master grub partition that 
chainloads into multiple operating systems.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-03-29 12:11 grub-lnstall option (UEFI) for chainloading Barry Jackson
@ 2015-03-29 13:12 ` Andrei Borzenkov
  2015-03-30  9:32   ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 12+ messages in thread
From: Andrei Borzenkov @ 2015-03-29 13:12 UTC (permalink / raw)
  To: Barry Jackson; +Cc: grub-devel

В Sun, 29 Mar 2015 13:11:04 +0100
Barry Jackson <zen25000@zen.co.uk> пишет:

> Hello,
> Currently when installing grub2 on UEFI, the running system's grub2 
> writes an entry to the ESP making it the controlling grub.
> 
> Can an option to grub2-install be added that installs only to 
> /boot/grub2 and creates core.efi, but does *not* write into the ESP?
> 
> This would provide similar functionality to the --no-bootsector option 
> used in PC-BIOS systems for using a Master grub partition that 
> chainloads into multiple operating systems.

Yes, for a long time I cherish idea of "only update /boot/grub and
create core.img" option. May be something like generic

--no-platform-setup

that will simply exit after image is created. --no-nvram is too
specific name to roll this into it. We can then deprecate
--no-bootsector and --no-nvram (actually as --no-bootsector is new just
drop it).

Vladimir, will you agree to a patch?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-03-29 13:12 ` Andrei Borzenkov
@ 2015-03-30  9:32   ` Vladimir 'φ-coder/phcoder' Serbinenko
  2015-03-30  9:58     ` Andrei Borzenkov
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2015-03-30  9:32 UTC (permalink / raw)
  To: The development of GNU GRUB

On 29.03.2015 15:12, Andrei Borzenkov wrote:
> В Sun, 29 Mar 2015 13:11:04 +0100
> Barry Jackson <zen25000@zen.co.uk> пишет:
>
>> Hello,
>> Currently when installing grub2 on UEFI, the running system's grub2
>> writes an entry to the ESP making it the controlling grub.
>>
>> Can an option to grub2-install be added that installs only to
>> /boot/grub2 and creates core.efi, but does *not* write into the ESP?
>>
>> This would provide similar functionality to the --no-bootsector option
>> used in PC-BIOS systems for using a Master grub partition that
>> chainloads into multiple operating systems.
>
> Yes, for a long time I cherish idea of "only update /boot/grub and
> create core.img" option. May be something like generic
>
> --no-platform-setup
>
> that will simply exit after image is created. --no-nvram is too
> specific name to roll this into it. We can then deprecate
> --no-bootsector and --no-nvram (actually as --no-bootsector is new just
> drop it).
>
GRUB already has --no-nvram for EFI.
--no-nvram has different meaning than what you describe. --no-nvram 
still copies all the files to their target destinations, in EFI case to 
ESP, just doesn't register them in NVRAM. It's useful if you want to fix 
GRUB setup on another computer by plugging its disk in USB enclosure.
I'm unclear about which semantics you want. Should --no-platform-setup 
still put boot.img to $prefix/i386-pc ? Probably yes, but it's already 
part of platform-dependent install. Should we split the switch 
(platform) in grub-install to 2 switches then ?
> Vladimir, will you agree to a patch?
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-03-30  9:32   ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2015-03-30  9:58     ` Andrei Borzenkov
  2015-06-05 13:56       ` Barry Jackson
  0 siblings, 1 reply; 12+ messages in thread
From: Andrei Borzenkov @ 2015-03-30  9:58 UTC (permalink / raw)
  To: The development of GNU GRUB

On Mon, Mar 30, 2015 at 12:32 PM, Vladimir 'φ-coder/phcoder'
Serbinenko <phcoder@gmail.com> wrote:
> On 29.03.2015 15:12, Andrei Borzenkov wrote:
>>
>> В Sun, 29 Mar 2015 13:11:04 +0100
>> Barry Jackson <zen25000@zen.co.uk> пишет:
>>
>>> Hello,
>>> Currently when installing grub2 on UEFI, the running system's grub2
>>> writes an entry to the ESP making it the controlling grub.
>>>
>>> Can an option to grub2-install be added that installs only to
>>> /boot/grub2 and creates core.efi, but does *not* write into the ESP?
>>>
>>> This would provide similar functionality to the --no-bootsector option
>>> used in PC-BIOS systems for using a Master grub partition that
>>> chainloads into multiple operating systems.
>>
>>
>> Yes, for a long time I cherish idea of "only update /boot/grub and
>> create core.img" option. May be something like generic
>>
>> --no-platform-setup
>>
>> that will simply exit after image is created. --no-nvram is too
>> specific name to roll this into it. We can then deprecate
>> --no-bootsector and --no-nvram (actually as --no-bootsector is new just
>> drop it).
>>
> GRUB already has --no-nvram for EFI.
> --no-nvram has different meaning than what you describe. --no-nvram still
> copies all the files to their target destinations, in EFI case to ESP, just
> doesn't register them in NVRAM. It's useful if you want to fix GRUB setup on
> another computer by plugging its disk in USB enclosure.
> I'm unclear about which semantics you want. Should --no-platform-setup still
> put boot.img to $prefix/i386-pc ?

Yes. It should copy modules to /boot/grub, run usual $prefix
detection, create core.img (whatever name for the current platform it
has) but stop here. In particular, it should not copy it into ESP on
EFI :)

>                                                Probably yes, but it's already part of
> platform-dependent install.

I do not insist on this name. I just cannot think about better alternative.

>                                         Should we split the switch (platform) in
> grub-install to 2 switches then ?

Not sure I understand it, sorry.

There main use case is master bootloader that chainloads (in broad
sense) bootloader for each installed system. In this case we do NOT
want core.img to be copied anywhere, because master bootloader will
load it. We DO want it to be fully functional core.img though,
including working reference to $prefix.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-03-30  9:58     ` Andrei Borzenkov
@ 2015-06-05 13:56       ` Barry Jackson
  2015-06-06  8:38         ` Andrei Borzenkov
  0 siblings, 1 reply; 12+ messages in thread
From: Barry Jackson @ 2015-06-05 13:56 UTC (permalink / raw)
  To: grub-devel

On 30/03/15 10:58, Andrei Borzenkov wrote:
> On Mon, Mar 30, 2015 at 12:32 PM, Vladimir 'φ-coder/phcoder'
> Serbinenko <phcoder@gmail.com> wrote:
>> On 29.03.2015 15:12, Andrei Borzenkov wrote:
>>>
>>> В Sun, 29 Mar 2015 13:11:04 +0100
>>> Barry Jackson <zen25000@zen.co.uk> пишет:
>>>
>>>> Hello,
>>>> Currently when installing grub2 on UEFI, the running system's grub2
>>>> writes an entry to the ESP making it the controlling grub.
>>>>
>>>> Can an option to grub2-install be added that installs only to
>>>> /boot/grub2 and creates core.efi, but does *not* write into the ESP?
>>>>
>>>> This would provide similar functionality to the --no-bootsector option
>>>> used in PC-BIOS systems for using a Master grub partition that
>>>> chainloads into multiple operating systems.
>>>
>>>
>>> Yes, for a long time I cherish idea of "only update /boot/grub and
>>> create core.img" option. May be something like generic
>>>
>>> --no-platform-setup
>>>
>>> that will simply exit after image is created. --no-nvram is too
>>> specific name to roll this into it. We can then deprecate
>>> --no-bootsector and --no-nvram (actually as --no-bootsector is new just
>>> drop it).
>>>
>> GRUB already has --no-nvram for EFI.
>> --no-nvram has different meaning than what you describe. --no-nvram still
>> copies all the files to their target destinations, in EFI case to ESP, just
>> doesn't register them in NVRAM. It's useful if you want to fix GRUB setup on
>> another computer by plugging its disk in USB enclosure.
>> I'm unclear about which semantics you want. Should --no-platform-setup still
>> put boot.img to $prefix/i386-pc ?
>
> Yes. It should copy modules to /boot/grub, run usual $prefix
> detection, create core.img (whatever name for the current platform it
> has) but stop here. In particular, it should not copy it into ESP on
> EFI :)
>
>>                                                 Probably yes, but it's already part of
>> platform-dependent install.
>
> I do not insist on this name. I just cannot think about better alternative.
>
>>                                          Should we split the switch (platform) in
>> grub-install to 2 switches then ?
>
> Not sure I understand it, sorry.
>
> There main use case is master bootloader that chainloads (in broad
> sense) bootloader for each installed system. In this case we do NOT
> want core.img to be copied anywhere, because master bootloader will
> load it. We DO want it to be fully functional core.img though,
> including working reference to $prefix.
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>

Any progress on this?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-06-05 13:56       ` Barry Jackson
@ 2015-06-06  8:38         ` Andrei Borzenkov
  2015-09-07 21:39           ` Barry Jackson
  0 siblings, 1 reply; 12+ messages in thread
From: Andrei Borzenkov @ 2015-06-06  8:38 UTC (permalink / raw)
  To: Barry Jackson; +Cc: grub-devel

В Fri, 05 Jun 2015 14:56:20 +0100
Barry Jackson <zen25000@zen.co.uk> пишет:

> On 30/03/15 10:58, Andrei Borzenkov wrote:
> > On Mon, Mar 30, 2015 at 12:32 PM, Vladimir 'φ-coder/phcoder'
> > Serbinenko <phcoder@gmail.com> wrote:
> >> On 29.03.2015 15:12, Andrei Borzenkov wrote:
> >>>
> >>> В Sun, 29 Mar 2015 13:11:04 +0100
> >>> Barry Jackson <zen25000@zen.co.uk> пишет:
> >>>
> >>>> Hello,
> >>>> Currently when installing grub2 on UEFI, the running system's grub2
> >>>> writes an entry to the ESP making it the controlling grub.
> >>>>
> >>>> Can an option to grub2-install be added that installs only to
> >>>> /boot/grub2 and creates core.efi, but does *not* write into the ESP?
> >>>>
> >>>> This would provide similar functionality to the --no-bootsector option
> >>>> used in PC-BIOS systems for using a Master grub partition that
> >>>> chainloads into multiple operating systems.
> >>>
> >>>
> >>> Yes, for a long time I cherish idea of "only update /boot/grub and
> >>> create core.img" option. May be something like generic
> >>>
> >>> --no-platform-setup
> >>>
> >>> that will simply exit after image is created. --no-nvram is too
> >>> specific name to roll this into it. We can then deprecate
> >>> --no-bootsector and --no-nvram (actually as --no-bootsector is new just
> >>> drop it).
> >>>
> >> GRUB already has --no-nvram for EFI.
> >> --no-nvram has different meaning than what you describe. --no-nvram still
> >> copies all the files to their target destinations, in EFI case to ESP, just
> >> doesn't register them in NVRAM. It's useful if you want to fix GRUB setup on
> >> another computer by plugging its disk in USB enclosure.
> >> I'm unclear about which semantics you want. Should --no-platform-setup still
> >> put boot.img to $prefix/i386-pc ?
> >
> > Yes. It should copy modules to /boot/grub, run usual $prefix
> > detection, create core.img (whatever name for the current platform it
> > has) but stop here. In particular, it should not copy it into ESP on
> > EFI :)
> >
> >>                                                 Probably yes, but it's already part of
> >> platform-dependent install.
> >
> > I do not insist on this name. I just cannot think about better alternative.
> >
> >>                                          Should we split the switch (platform) in
> >> grub-install to 2 switches then ?
> >
> > Not sure I understand it, sorry.
> >
> > There main use case is master bootloader that chainloads (in broad
> > sense) bootloader for each installed system. In this case we do NOT
> > want core.img to be copied anywhere, because master bootloader will
> > load it. We DO want it to be fully functional core.img though,
> > including working reference to $prefix.
> >
> > _______________________________________________
> > Grub-devel mailing list
> > Grub-devel@gnu.org
> > https://lists.gnu.org/mailman/listinfo/grub-devel
> >
> 
> Any progress on this?
> 


Not really, sorry. Do you have any suggestion how such option should be
named? 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-06-06  8:38         ` Andrei Borzenkov
@ 2015-09-07 21:39           ` Barry Jackson
  2015-10-12  9:31             ` Andrei Borzenkov
  0 siblings, 1 reply; 12+ messages in thread
From: Barry Jackson @ 2015-09-07 21:39 UTC (permalink / raw)
  To: Andrei Borzenkov; +Cc: grub-devel

On 06/06/15 09:38, Andrei Borzenkov wrote:
> В Fri, 05 Jun 2015 14:56:20 +0100
> Barry Jackson <zen25000@zen.co.uk> пишет:

>> Any progress on this?
>>
>
>
> Not really, sorry. Do you have any suggestion how such option should be
> named?
>

Sorry for delay - this got lost in the noise.

Well something like --no-id-or-nvram ??

Not really bothered about the name! :)


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-09-07 21:39           ` Barry Jackson
@ 2015-10-12  9:31             ` Andrei Borzenkov
  2015-10-12 16:39               ` Daniel Kiper
  2016-06-06 11:20               ` Barry Jackson
  0 siblings, 2 replies; 12+ messages in thread
From: Andrei Borzenkov @ 2015-10-12  9:31 UTC (permalink / raw)
  To: Barry Jackson; +Cc: The development of GNU GRUB

On Tue, Sep 8, 2015 at 12:39 AM, Barry Jackson <zen25000@zen.co.uk> wrote:
> On 06/06/15 09:38, Andrei Borzenkov wrote:
>>
>> В Fri, 05 Jun 2015 14:56:20 +0100
>> Barry Jackson <zen25000@zen.co.uk> пишет:
>
>
>>> Any progress on this?
>>>
>>
>>
>> Not really, sorry. Do you have any suggestion how such option should be
>> named?
>>
>
> Sorry for delay - this got lost in the noise.
>
> Well something like --no-id-or-nvram ??
>
> Not really bothered about the name! :)

I was about to suggest a patch when I realized that this probably is
currently useless on EFI. I.e. to actually chainload grub on EFI it
must reside on a partition accessible by firmware which practically
means it should be ESP.

Unless someone submits patch to make grub2 EFI core.img multiboot2
compliant with tag to skip ExitBootServices.

Does chainloading from /boot/grub actually work for you on EFI? Could
you explain your configuration in more details?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-10-12  9:31             ` Andrei Borzenkov
@ 2015-10-12 16:39               ` Daniel Kiper
  2015-10-12 20:08                 ` Andrei Borzenkov
  2016-06-06 11:20               ` Barry Jackson
  1 sibling, 1 reply; 12+ messages in thread
From: Daniel Kiper @ 2015-10-12 16:39 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: arvidjaar, phcoder, daniel.kiper

On Mon, Oct 12, 2015 at 12:31:54PM +0300, Andrei Borzenkov wrote:
> On Tue, Sep 8, 2015 at 12:39 AM, Barry Jackson <zen25000@zen.co.uk> wrote:
> > On 06/06/15 09:38, Andrei Borzenkov wrote:
> >>
> >> ?? Fri, 05 Jun 2015 14:56:20 +0100
> >> Barry Jackson <zen25000@zen.co.uk> ??????????:
> >
> >
> >>> Any progress on this?
> >>>
> >>
> >>
> >> Not really, sorry. Do you have any suggestion how such option should be
> >> named?
> >>
> >
> > Sorry for delay - this got lost in the noise.
> >
> > Well something like --no-id-or-nvram ??
> >
> > Not really bothered about the name! :)
>
> I was about to suggest a patch when I realized that this probably is
> currently useless on EFI. I.e. to actually chainload grub on EFI it
> must reside on a partition accessible by firmware which practically
> means it should be ESP.
>
> Unless someone submits patch to make grub2 EFI core.img multiboot2
> compliant with tag to skip ExitBootServices.

Relevant patches waiting for review for months. I am working on v3.
If they are upstreamed I will be happy too.

Daniel


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-10-12 16:39               ` Daniel Kiper
@ 2015-10-12 20:08                 ` Andrei Borzenkov
  2015-10-12 20:59                   ` Daniel Kiper
  0 siblings, 1 reply; 12+ messages in thread
From: Andrei Borzenkov @ 2015-10-12 20:08 UTC (permalink / raw)
  To: Daniel Kiper, The development of GNU GRUB; +Cc: phcoder, daniel.kiper

12.10.2015 19:39, Daniel Kiper пишет:
> On Mon, Oct 12, 2015 at 12:31:54PM +0300, Andrei Borzenkov wrote:
>> On Tue, Sep 8, 2015 at 12:39 AM, Barry Jackson <zen25000@zen.co.uk> wrote:
>>> On 06/06/15 09:38, Andrei Borzenkov wrote:
>>>>
>>>> ?? Fri, 05 Jun 2015 14:56:20 +0100
>>>> Barry Jackson <zen25000@zen.co.uk> ??????????:
>>>
>>>
>>>>> Any progress on this?
>>>>>
>>>>
>>>>
>>>> Not really, sorry. Do you have any suggestion how such option should be
>>>> named?
>>>>
>>>
>>> Sorry for delay - this got lost in the noise.
>>>
>>> Well something like --no-id-or-nvram ??
>>>
>>> Not really bothered about the name! :)
>>
>> I was about to suggest a patch when I realized that this probably is
>> currently useless on EFI. I.e. to actually chainload grub on EFI it
>> must reside on a partition accessible by firmware which practically
>> means it should be ESP.
>>
>> Unless someone submits patch to make grub2 EFI core.img multiboot2
>> compliant with tag to skip ExitBootServices.
>
> Relevant patches waiting for review for months. I am working on v3.
> If they are upstreamed I will be happy too.
>

Your patches implement "client side" support (loading MB2 images); but 
EFI grub is not MB2 and has no provision for being loaded this way. Also 
it is PE, not ELF.

Actually chainloading probably could be made to work on arbitrary 
filesystem if argument parsing is added (to pass along cmdpath).


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-10-12 20:08                 ` Andrei Borzenkov
@ 2015-10-12 20:59                   ` Daniel Kiper
  0 siblings, 0 replies; 12+ messages in thread
From: Daniel Kiper @ 2015-10-12 20:59 UTC (permalink / raw)
  To: Andrei Borzenkov; +Cc: The development of GNU GRUB, phcoder, Daniel Kiper

On Mon, Oct 12, 2015 at 11:08:24PM +0300, Andrei Borzenkov wrote:
> 12.10.2015 19:39, Daniel Kiper пишет:
> >On Mon, Oct 12, 2015 at 12:31:54PM +0300, Andrei Borzenkov wrote:
> >>On Tue, Sep 8, 2015 at 12:39 AM, Barry Jackson <zen25000@zen.co.uk> wrote:
> >>>On 06/06/15 09:38, Andrei Borzenkov wrote:
> >>>>
> >>>>?? Fri, 05 Jun 2015 14:56:20 +0100
> >>>>Barry Jackson <zen25000@zen.co.uk> ??????????:
> >>>
> >>>
> >>>>>Any progress on this?
> >>>>>
> >>>>
> >>>>
> >>>>Not really, sorry. Do you have any suggestion how such option should be
> >>>>named?
> >>>>
> >>>
> >>>Sorry for delay - this got lost in the noise.
> >>>
> >>>Well something like --no-id-or-nvram ??
> >>>
> >>>Not really bothered about the name! :)
> >>
> >>I was about to suggest a patch when I realized that this probably is
> >>currently useless on EFI. I.e. to actually chainload grub on EFI it
> >>must reside on a partition accessible by firmware which practically
> >>means it should be ESP.
> >>
> >>Unless someone submits patch to make grub2 EFI core.img multiboot2
> >>compliant with tag to skip ExitBootServices.
> >
> >Relevant patches waiting for review for months. I am working on v3.
> >If they are upstreamed I will be happy too.
> >
>
> Your patches implement "client side" support (loading MB2 images);

OK but they provide what you need here. So, it does not fully invalidate
what I said earlier.

> but EFI grub is not MB2 and has no provision for being loaded this
> way. Also it is PE, not ELF.

MB2 header may live in PE, ELF or even in file which does not have commonly known format.

> Actually chainloading probably could be made to work on arbitrary
> filesystem if argument parsing is added (to pass along cmdpath).

So, it looks that MB2 with my extensions should make it work.

Daniel


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: grub-lnstall option (UEFI) for chainloading
  2015-10-12  9:31             ` Andrei Borzenkov
  2015-10-12 16:39               ` Daniel Kiper
@ 2016-06-06 11:20               ` Barry Jackson
  1 sibling, 0 replies; 12+ messages in thread
From: Barry Jackson @ 2016-06-06 11:20 UTC (permalink / raw)
  To: Andrei Borzenkov; +Cc: The development of GNU GRUB

On 12/10/15 10:31, Andrei Borzenkov wrote:
> On Tue, Sep 8, 2015 at 12:39 AM, Barry Jackson <zen25000@zen.co.uk> wrote:
>> On 06/06/15 09:38, Andrei Borzenkov wrote:
>>>
>>> В Fri, 05 Jun 2015 14:56:20 +0100
>>> Barry Jackson <zen25000@zen.co.uk> пишет:
>>
>>
>>>> Any progress on this?
>>>>
>>>
>>>
>>> Not really, sorry. Do you have any suggestion how such option should be
>>> named?
>>>
>>
>> Sorry for delay - this got lost in the noise.
>>
>> Well something like --no-id-or-nvram ??
>>
>> Not really bothered about the name! :)
>
> I was about to suggest a patch when I realized that this probably is
> currently useless on EFI. I.e. to actually chainload grub on EFI it
> must reside on a partition accessible by firmware which practically
> means it should be ESP.
>
> Unless someone submits patch to make grub2 EFI core.img multiboot2
> compliant with tag to skip ExitBootServices.
>
> Does chainloading from /boot/grub actually work for you on EFI? Could
> you explain your configuration in more details?
>

Sorry for the long delay I missed your reply. We could really do with a 
patch for this as Mageia 6 is in freeze. ;)

Yes it works fine from a separate small grub2 partition.

The grub2 install to the small dedicated grub2 partition is installed by 
my script here: https://wiki.mageia.org/en/User_talk:Barjac

This is my current grub.cfg created by the script:

set default="0"
set timeout=10

if loadfont unicode ; then
   set gfxmode=1024x768x32
   insmod all_video
   insmod gfxterm
   set locale_dir=/locale
   set lang=en_GB
   insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2

# Theme
insmod gfxmenu
loadfont /grub2/themes/maggy/MageiaLogo-Bold-16.pf2
loadfont /grub2/themes/maggy/MageiaLogo-Bold-20.pf2
loadfont /grub2/themes/maggy/MageiaLogo-Bold-28.pf2
loadfont /grub2/themes/maggy/MageiaLogo-Regular-20.pf2
insmod png
set theme=/grub2/themes/maggy/theme.txt
export theme

menuentry 'Mageia 6 on /dev/sda7' {
search --no-floppy --fs-uuid --set=root 
"a5ea7e67-7d24-4ecd-8271-fe662c87f258"
chainloader /boot/grub2/x86_64-efi/core.efi
}

menuentry 'Mageia 5  on /dev/sda4' {
search --no-floppy --fs-uuid --set=root 
"6e0e6790-c318-4bbe-b3cf-e925391b4d16"
chainloader /boot/grub2/x86_64-efi/core.efi
}

menuentry 'Mageia 6  on /dev/sda5' {
search --no-floppy --fs-uuid --set=root 
"18c8d8d4-dee6-4219-9dbf-a96d439ea76e"
chainloader /boot/grub2/x86_64-efi/core.efi
}



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-06-06 11:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-29 12:11 grub-lnstall option (UEFI) for chainloading Barry Jackson
2015-03-29 13:12 ` Andrei Borzenkov
2015-03-30  9:32   ` Vladimir 'φ-coder/phcoder' Serbinenko
2015-03-30  9:58     ` Andrei Borzenkov
2015-06-05 13:56       ` Barry Jackson
2015-06-06  8:38         ` Andrei Borzenkov
2015-09-07 21:39           ` Barry Jackson
2015-10-12  9:31             ` Andrei Borzenkov
2015-10-12 16:39               ` Daniel Kiper
2015-10-12 20:08                 ` Andrei Borzenkov
2015-10-12 20:59                   ` Daniel Kiper
2016-06-06 11:20               ` Barry Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).