1 |
Tomáš Chvátal posted on Sun, 28 Aug 2011 13:28:26 +0200 as excerpted: |
2 |
|
3 |
> I updated the grub2 ebuilds in main tree and took maintainership of |
4 |
> grub2. |
5 |
|
6 |
Thanks. |
7 |
|
8 |
I've been wondering about trying grub2, but have some questions. |
9 |
|
10 |
What is needed to compile it? Specifically, my main machine is ~amd64 |
11 |
no-multilib and runs grub-static for grub1 (0.97-r10) Should 64-bit gcc |
12 |
without multilib be able to compile grub2, or is 32-bit gcc needed? |
13 |
|
14 |
If 32-bit is needed, I should be able to build it in my 32-bit netbook |
15 |
build-image chroot, but obviously I don't want it trying to do anything |
16 |
funny like trying to load into boot records, from there. |
17 |
|
18 |
The grub-static-0.97-rX tarball is simply a binpkged grub-0.97-rX built |
19 |
and binpkged on a 32-bit machine, with an ebuild that extracts and |
20 |
installs the binaries from the binpkg. Could the same technique be used |
21 |
for grub-static-2? |
22 |
|
23 |
Slotted is good, as on my main machine I run a quad-disk md/RAID set, |
24 |
normally all four in RAID-1, but for /boot, only two in RAID-1, with a |
25 |
second RAID-1 for the other two, with the idea of experimenting with |
26 |
grub-2 there and selecting which to boot from the BIOS. BTW, does grub- |
27 |
static slot nicely with it as well? |
28 |
|
29 |
Of course, for this to work, I'll presumably have to install the binpkg |
30 |
built in the 32-bit chroot slotted with grub-static on my main machine, |
31 |
then manually install to the second /boot after mounting it, and manually |
32 |
install to those disks boot records. |
33 |
|
34 |
grub2 supports gpt I'm told. I'm 100% gpt on both systems (main and |
35 |
netbook) and my bootable thumbdrives as well, all using grub-static at |
36 |
this point, but both systems are still conventional BIOS. All bootable |
37 |
drives have both a legacy BIOS boot partition (1024 KB) and an EFI system |
38 |
reserved partition (127 MB, thus 128 MB for the two of them combined), |
39 |
both empty/reserved at this point, in addition to the normal md/RAID-1 |
40 |
/boot partition. Again, they're all GPT but BIOS booting. Where's the |
41 |
optimal place to install grub2 in this setup and how do I tell it to do |
42 |
so, and/or tell the ebuild to not try to install to any boot records when |
43 |
I'm simply building/installing it in the 32-bit netbook build-image |
44 |
chroot? |
45 |
|
46 |
Some of this might be in your devspace docs already, but I doubt it all |
47 |
is. I could probably help with them as the answers are worked out. |
48 |
|
49 |
I'm still posting this to the (devel, not announce) list as I imagine |
50 |
others will find your answers at global level useful as well and getting |
51 |
some discussion into the public list archives is likely to be useful, |
52 |
given the dearth of info I've seen on grub2 in Gentoo so far. However, |
53 |
taking it to bugs or to private mail will probably be better at some |
54 |
point. |
55 |
|
56 |
-- |
57 |
Duncan - List replies preferred. No HTML msgs. |
58 |
"Every nonfree program has a lord, a master -- |
59 |
and if you use the program, he is your master." Richard Stallman |