Bug 1277227
| Summary: | grub2-install fails in anaconda (pre) shell with 'grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.' | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Joseph Tingiris <joseph.tingiris> | |
| Component: | lorax | Assignee: | Brian Lane <bcl> | |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 7.3 | CC: | bcl, joseph.tingiris, jstodola, mkovarik, pkhedeka | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | lorax-19.6.67-1 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1626269 (view as bug list) | Environment: | ||
| Last Closed: | 2016-11-03 23:44:57 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1626269 | |||
|
Description
Joseph Tingiris
2015-11-02 17:59:18 UTC
Why are you trying to run it from %pre? The project I'm working has a requirement for a custom recovery/install partition. As a result, all partitioning is done in pre so it can be created (or preserved) as necessary. The methods and reasoning for doing custom partitioning via pre is well established. In this case, physical access to the machines is limited. They are headless appliances and being booted via said recovery/install partition over the Internet via inst.ks (https, not pxe). Transient network failures are a reality. Installs don't always go as planned. In the event post install fails, the machine must be able to reboot itself from the recovery partition and ultimately try again unattended (via grub2/custom.cfg). The recovery partition is also used as a 'factory reset' mechanism and more. Everything works as planned on bios based machines. grub2-install performs as expected, etc. With the proliferation of more modern hardware, duplicating the same functionality on EFI based machines is desirable. All of the necessary tools are already available in pre and the only missing component is apparently /usr/lib/grub/x86_64-efi/ Thanks for the additional detail. Lorax should include grub2-efi-modules when building the boot.iso Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2165.html Hello, Reopening the BugZilla as the issue is still faced in Red Hat Enterprise Linux 7.4 and 7.5 Beta as well. The installation media of DVD RHEL7.4 doesn't include any file within /usr/lib/grub ( this directory is empty). For this reason, the command fails. Reproducible as, enter in rescue mode from a RHEL7.4 DVD and try to execute the command, you will see that this folder is empty. Another way to reproduce it is to mount the stage2 LiveOS/squashfs.img (anaconda installation) and verify that the /usr/lib/grub folder is empty. But it does not recommend doing it. This is still an issue, a regression from 7.1 that still exists. I thought it was re-opened? |