Bug 49457 - /boot/grub/grub.conf not used in grub's "setup" command
Summary: /boot/grub/grub.conf not used in grub's "setup" command
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: grub   
(Show other bugs)
Version: 7.3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Jay Turner
Depends On:
TreeView+ depends on / blocked
Reported: 2001-07-19 17:31 UTC by Joshua Jensen
Modified: 2015-01-07 23:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-07-19 18:59:24 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Joshua Jensen 2001-07-19 17:31:14 UTC
If I need to re-establish the MBR to point to GRUB, I type the following at
the grub prompt:

grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup --prefix=/grub/i386-redhat (hd0)
 Checking if "/grub/i386-redhat/stage1" exists... yes
 Checking if "/grub/i386-redhat/stage2" exists... yes
 Checking if "/grub/i386-redhat/e2fs_stage1_5" exists... yes
 Running "embed /grub/i386-redhat/e2fs_stage1_5 (hd0)"...  16 sectors are 
 Running "install /grub/i386-redhat/stage1 d (hd0) (hd0)1+16 p 
(hd0,0)/grub/i386-redhat/stage2 /grub/i386-redhat/grub.conf"... succeeded

grub> quit

Notice that the file the standard setup command uses is 
/grub/i386-redhat/grub.conf, which doesn't exist!  This file, IIRC, used to
be named menu.1st.  Regardless, the name doesn't matter as much as the
location.  It (the location) is correct by grub standards, but not for Red
Hat.  The installer creates the grub.conf file in /boot/grub/grub.conf.

To solve the descrepency you should use one location or the other... make
grub default to using our /boot/grub/grub.conf location, or make the
installer use the /boot/grub/i386-redhat/grub.conf location.  Maybe an easy
way out is to make /boot/grub/i386-redhat/grub.conf a hard link to
/boot/grub/grub.conf (?)

Thank you,

Joshua Jensen

Comment 1 Jeremy Katz 2001-07-19 20:08:29 UTC
Fixed in at least grub-0.90-6.

Note You need to log in before you can comment on or make changes to this bug.