Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 84354

Summary: Possible documentation bug, grub-install root-directory should be /, not "/boot"
Product: [OLD] Docs-user Reporter: lansalot <lansalot>
Component: Gentoo Alternative Installation GuideAssignee: Sven Vermeulen (RETIRED) <swift>
Status: RESOLVED WORKSFORME    
Severity: normal CC: docs-team
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=10
Whiteboard:
Package list:
Runtime testing required: ---

Description lansalot 2005-03-06 16:37:34 UTC
At above URL, issuing the command as per the docs:

grub-install --root-directory=/boot /dev/hda

Will result in grub being installed in /boot/boot/grub.

Reproducible: Always
Steps to Reproduce:
1. Change the amd64 documentation, --root-directory=/boot should be --root-directory=/

Actual Results:  
It worked.

Expected Results:  
Install grub into /boot, not /boot.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2005-03-10 02:16:54 UTC
/boot/boot should be a symlink to /boot, so /boot/boot/grub = /boot/grub.  grub cannot determine mount points, so the --root-directory=/boot is necessary for people who have /boot on a seperate partition - otherwise grub would look on the wrong partition for the image files.  the symlink keeps things simple.

http://www.gnu.org/software/grub/grub-legacy-faq.en.html#q11
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2005-03-25 06:36:40 UTC
The command is correct
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2005-03-25 06:38:48 UTC
Didn't mean to just put "works" :)

The command doesn't hurt as per Ryan's comment. For people with separate boot partitions it is vital, but for others it's just redundant.