Bug 49457 - /boot/grub/grub.conf not used in grub's "setup" command
/boot/grub/grub.conf not used in grub's "setup" command
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: grub (Show other bugs)
7.3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-07-19 13:31 EDT by Joshua Jensen
Modified: 2015-01-07 18:48 EST (History)
2 users (show)

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


Attachments (Terms of Use)

  None (edit)
Description Joshua Jensen 2001-07-19 13:31:14 EDT
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 
   embedded.
succeeded
 Running "install /grub/i386-redhat/stage1 d (hd0) (hd0)1+16 p 
(hd0,0)/grub/i386-redhat/stage2 /grub/i386-redhat/grub.conf"... succeeded
Done.

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 16:08:29 EDT
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.