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: | grub | Assignee: | Peter Jones <pjones> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Milan Zázrivec <mzazrivec> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 5.1 | CC: | clasohm, fleitner, tao | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | RHBA-2008-0440 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-05-21 16:46:54 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 270681 [details]
Patch to detect if disk and partition are the same, and install on MBR
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 release. *** Bug 429187 has been marked as a duplicate of this bug. *** Fixed in grub-0.97-13.1 . The fix breaks dmraid; need to respin this with a slightly different solution. Fixed again in grub-0.97-13.2 . 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. Verified with RHEL5.2-Server-20080402.nightly / grub-0.97-13.2 on a HP Proliant DL360 system. 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. http://rhn.redhat.com/errata/RHBA-2008-0440.html |
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 successfully. [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: Always 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.