Bug 745183

Summary: please add --root-directory to usage of grub2-install
Product: [Fedora] Fedora Reporter: Mike Khusid <mkhusid>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: dennis, jofernan, mads, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-11 19:14:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mike Khusid 2011-10-11 15:08:54 UTC
Description of problem:
grub2-install --help doesn't list --root-directory as a valid usage. It looks like the code does allow for this option.

This option is very valuable when recovering grub2 after another OS install, e.g. described here: http://ulyssesonline.com/2010/09/20/recover-grub2-after-windows-install/

Version-Release number of selected component (if applicable):
grub2-1.99-7.fc16

Comment 1 Mads Kiilerich 2011-11-11 19:14:11 UTC
--root-directory=/mnt/ is accepted for compatibility but is undocumented and not recommended.

Instead --boot-directory=/mnt/boot should be used. Documenting this feature would just add confusion.