From: Andrey Borzenkov <address@hidden>
To: S O <address@hidden>
Cc: "address@hidden" <address@hidden>
Sent: Tuesday, December 25, 2012 10:58 PM
Subject: Re: EasyBCD and GRUB2
On Wed, Dec 26, 2012 at 8:55 AM, S O <
address@hidden> wrote:
> menuentry "MyLinux2" {
> search --no-floppy --set root --label MYLINUX2
> set prefix=($root)/boot/grub
> configfile $prefix/grub.cfg
> }
>
> and so on.
>
> Thus GRUB is actually loaded only from master partition (which should reduce
> the risks of "blocklist" issues in case of backups etc.), but then menu
> directs it to instance-specific partition and grub.cfg in that partition.
Word of caution. ${prefix} also defines location of grub2 modules. So
you have to absolutely ensure that grub2 build in every OS is the same
as master. Otherwise you are risking running binaries from different
builds with undefined results.
I would rather use chain loading; you can
directly load core.img using
chainload $prefix/i386-pc/core.img
(or x84_64-efi or rather exotic i386-efi)
which ensures your core.img and modules are consistent. There is no
blocklists involved, grub2 will read files so you are free to move
them around as you like.