Gentoo Archives: gentoo-dev

From: Rich Freeman <rich0@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] grub:2 keywords
Date: Fri, 29 Jun 2012 19:16:23
Message-Id: CAGfcS_=LpjoBNZfTAGaZRe5TJf20wZ7zi=Bq4TTSzT_69YzPvg@mail.gmail.com
In Reply to: Re: [gentoo-dev] grub:2 keywords by Mike Gilbert
1 On Fri, Jun 29, 2012 at 3:01 PM, Mike Gilbert <floppym@g.o> wrote:
2 > 3. grub2-install calls grub2-bios-setup which installs boot.img into
3 > the MBR and embeds core.img into the sectors immediately after the
4 > MBR.
5
6 Ok, that isn't all that unlike grub1 - that is what stage1.5 is. It
7 just sounds like these aren't static files that are copied out of
8 /boot/grub, but rather they're built on-demand from other files there.
9 Grub1 figures out which static stage1.5 you need based on where /boot
10 is. They probably went to a more dynamic model so that they can
11 support stuff like LVM+MD+LUKS+etc without having every permutation of
12 static code. I'm not sure how smart the bootloader code ends up being
13 - it wouldn't surprise me if at time of install the installer does all
14 the work and just loads a simple bootloader on the diagnostic cylinder
15 with just enough smarts to find /boot if it hasn't changed.
16
17 Rich

Replies

Subject Author
Re: [gentoo-dev] grub:2 keywords Mike Gilbert <floppym@g.o>
Re: [gentoo-dev] grub:2 keywords Jeroen Roovers <jer@g.o>