Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79936 - (documentation) Gentoo Linux AMD64 Handbook bootloader grub-static reference
Summary: (documentation) Gentoo Linux AMD64 Handbook bootloader grub-static reference
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: nm (RETIRED)
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 03:22 UTC by voidptr
Modified: 2006-11-01 23:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description voidptr 2005-01-29 03:22:23 UTC
While installing gentoo on an amd64 platform, I got to the point to emerge grub, but then realised the hardened stage I used did not have multilib support (use +multilib)...

Emerging grub told me to emerge gcc with multilib support, however this did not work properly (not hardened related). Eventually I decided to start from zero and enable multilib as in the default profile. I was reading through the profile and ran into "virtual/bootloader sys-boot/grub-static". This seems to be the way to go when you have a non-multilib amd64 system. (I have not actually tested it since I am remote to the system, but it emerges fine).

I would like to ask to add a small paragraph to the related documentation (as pointed to by the above url). Stating that on a non-multilib amd64 system the user can use static-grub as an alternative.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-14 08:30:42 UTC
This is hardened-specific and should be discussed in the hardened documentation. 
Comment 2 Michael Lang 2005-03-06 09:13:05 UTC
I had same problem emerging GRUB on AMD 64 platform.  didn't have multilib support enabled.  Found in the forums to emerge grub-static instead of grub.  Installation handbook for AMD 64 should be updated to reference grub-static.
Comment 3 Gilles 2005-03-20 06:07:00 UTC
I've just installed from "2004.3", and had problems with GRUB.

First, the default gcc (from stage 2) didn't have "multilib" enabled
(contrary to what is said in the link referred to in comment #1 of
bug #60604), so I had to create the "package.use" file to continue
the installation.
Now GRUB compiled, but didn't work properly: no "TAB completion", which
is rather painful when trying to figure out where the "grub root" partition
is.
So, either a newer version of grub doesn't exhibit that problem (I didn't 
try), and it should be in the "stable" branch, or the manual should say 
that "grub-static" *must* be used (i.e. not only if "multilib" isn't 
enabled).
Comment 4 doejoe 2005-06-22 11:05:17 UTC
For amd64 grub-static is needed and it seems to have problems with PAX. If I
start grub it works fine and selecting the root partition through the command
like "root (hd0,0) but as far as I enter the command "setup (hd0)" grub is killed.
Isn't it possible to release a newer grub-static?
Without hardened Gentoo without Pax and grsecurity I have no problems.
Comment 5 doejoe 2005-06-22 11:07:39 UTC
By the way grub works without multilib if the Kernel has IA32-support compiled in.
Comment 6 Chris Torske 2005-10-04 15:27:39 UTC
I know I ran into about the same issue of building a pure amd64 system
(-multilib)  that grub was hard masked.  I did manage to fully get lilo instead
to compile and work most of the way on amd64.  Right now it is marked as
unstable.  The only problem on lilo that I encountered is that I couldn't get
boot splash too work; but that issue is something else.  I'll test out lilo some
more, make sure it is pretty stable on amd64 before I sumbit a request for it
stableized on amd64, and have it added to documentation.
Comment 7 solar (RETIRED) gentoo-dev 2006-01-05 18:29:26 UTC
Is this bug still current? Should it be assigned to hardened only vs the maintainer of the given doc? Can it be closed? 
Comment 8 Andrew Ross (RETIRED) gentoo-dev 2006-10-21 00:30:55 UTC
It's very real, as I just ran into it myself :-) An even easier solution that updating docs (and arguing over whether it should go in the hardened docs or the amd64 handbook) is to simply adjust the message in package.mask to suggest using grub-static if the user doesn't want to switch to a multilib profile.
Comment 9 Andy Task 2006-10-25 14:30:09 UTC
This is really annoying if try to install gentoo with hardened profile and follow the amd64 install docs. You try to emerge grub but it is masked.. unmask grub.. emerge again.. emerge error.. until you might have luck and find the hint that you should emerge grub-static. You should mention it in the install docs + when printing the masked messages for grub .. ty
Comment 10 Andrew Ross (RETIRED) gentoo-dev 2006-10-29 01:52:06 UTC
The package.mask message for grub on hardened/amd64 now suggests grub-static for non-multilib systems - this puts hardened non-multilib users in the same situation as non-hardened non-multilib users. When the package.mask messages are combined with the fact that grub-static is the default provider of virtual/bootloader on hardened/amd64 and default-linux/amd64/2006.1, you have a pretty good interim solution.

The decision about modifying the handbook is now up to the docs and/or amd64 teams.
Comment 11 Simon Stelling (RETIRED) gentoo-dev 2006-10-30 07:13:42 UTC
The masking entry now says that you should use grub-static instead, would be good to have it covered in the handbook though.
Comment 12 nm (RETIRED) gentoo-dev 2006-11-01 01:04:17 UTC
(In reply to comment #11)
> The masking entry now says that you should use grub-static instead, would be
> good to have it covered in the handbook though.
> 

As others have hinted (including our former head SwifT, back in the day), this belongs in the Hardened handbooks, not in the main handbook, which doesn't cover hardened/selinux/rsbac/uberspecialsecure installs.

Reassigning to Hardened; it's their docs in /proj/.
Comment 13 nm (RETIRED) gentoo-dev 2006-11-01 11:00:18 UTC
Reassigning per above.
Comment 14 Simon Stelling (RETIRED) gentoo-dev 2006-11-01 22:18:12 UTC
No, it's a non-multilib problem. Hardened uses non-multilib, but that doesn't make it a hardened problem. We offer non-hardened users non-multilib profiles, so it should be covered in our handbook.
Comment 15 nm (RETIRED) gentoo-dev 2006-11-01 23:31:22 UTC
Added an <impo> for non-multilib users to install grub-static instead, and added an additional AMD64-specific example of switching to a no-multilib profile when installing the base system. So hardened/non-multilib users can rejoice in the handbook, as the bases are covered.

Fixed in CVS.