Bug 402151

Summary: grub-install can't install to MBR on cciss devices
Product: Red Hat Enterprise Linux 5 Reporter: Fabio Olive Leite <fleite>
Component: grubAssignee: Peter Jones <pjones>
Status: CLOSED ERRATA QA Contact: Milan Zazrivec <mzazrivec>
Severity: high Docs Contact:
Priority: high    
Version: 5.1CC: clasohm, fleitner, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: RHBA-2008-0440 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 12:46:54 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
Patch to detect if disk and partition are the same, and install on MBR none

Description Fabio Olive Leite 2007-11-27 23:41:13 EST
Description of problem:

While using the grub-install script, if specifying a base device 
of '/dev/cciss/c0d0', the script reports an error, yet claims to have finished 

     [root@box ~]# grub-install /dev/cciss/c0d0
      expr: non-numeric argument
      Installation finished. No error reported.
      This is the contents of the device map /boot/grub/device.map.
      Check if this is correct or not. If any of the lines is incorrect,
      fix it and re-run the script `grub-install'.

      # this device map was generated by anaconda
      (hd0)     /dev/cciss/c0d0

How reproducible:


Steps to Reproduce:

On a system with /dev/cciss devices (specifically an HP Proliant DL380) using 
the grub-0.97-13 package, run:

grub-install /dev/cciss/c0d0

Actual results:

The script runs, an error is displayed, and the script claims to exit 
successfully. The result is that GRUB is not actually installed, or is not 
installed to the MBR of the device provided.

Expected results:

GRUB should be installed as expected.

Additional info:

Proposed fix is attached as a patch.
Comment 1 Fabio Olive Leite 2007-11-27 23:41:14 EST
Created attachment 270681 [details]
Patch to detect if disk and partition are the same, and install on MBR
Comment 3 RHEL Product and Program Management 2007-11-27 23:44:25 EST
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 6 Peter Jones 2008-02-04 14:52:38 EST
*** Bug 429187 has been marked as a duplicate of this bug. ***
Comment 7 Peter Jones 2008-02-04 15:00:35 EST
Fixed in grub-0.97-13.1 .
Comment 9 Peter Jones 2008-02-07 16:30:30 EST
The fix breaks dmraid; need to respin this with a slightly different solution.
Comment 10 Peter Jones 2008-02-07 19:05:26 EST
Fixed again in grub-0.97-13.2 .
Comment 12 Carsten Clasohm 2008-02-14 04:03:33 EST
One workaround with grub-0.97-13 is to run "grub-install hd0". This works if hd0
is mapped to the correct cciss device in /boot/grub/device.map.
Comment 13 Milan Zazrivec 2008-04-02 04:34:10 EDT
Verified with RHEL5.2-Server-20080402.nightly / grub-0.97-13.2
on a HP Proliant DL360 system.
Comment 15 errata-xmlrpc 2008-05-21 12:46:54 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.