Bug 1898314
Summary: | Converting a UEFI install drops to grub> prompt, or fails to boot. | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ryan Blakley <rblakley> | |
Component: | convert2rhel | Assignee: | Michal Bocek <mbocek> | |
Status: | CLOSED ERRATA | QA Contact: | Upgrades and Supportability <upgrades-and-supportability> | |
Severity: | high | Docs Contact: | Miriam Portman <mportman> | |
Priority: | high | |||
Version: | 7.9 | CC: | asonmez, cbesson, cgaynor, fche, fkrska, fmkoreacom, jbroome, jcastran, jdravet, leapp-notifications, mbocek, mihai, mlitwora, pdwyer, prjagtap, pstodulk, rmullett, snejoshi, stephane.jourdan, sysadmin, tbowling, wbachman+rhn | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | convert2rhel-0.24-1.el7 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2010707 2010708 (view as bug list) | Environment: | ||
Last Closed: | 2021-10-13 07:11:36 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: | 1818077, 1818088, 2010707, 2010708 |
Description
Ryan Blakley
2020-11-16 19:30:35 UTC
Tracked internally under https://issues.redhat.com/browse/OAMG-4142. This is the fix, after conversion, before reboot: grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg From this comment, in April 2020: https://access.redhat.com/articles/2360841#comment-1774301 -------Workaround -------- (Tested on both CentOS 7 & CentOS 8 works without any issue.) Do not reboot the system after conversion just follow below additional steps [1] Generated the grub.cfg file # grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg [2] Remove CentOS entry. [2.1] Find centos entry run # efibootmgr -v Example: [root@centos ~]# efibootmgr BootCurrent: 0003 Timeout: 0 seconds BootOrder: 0003,0001,0002 Boot0001* UiApp Boot0002* UEFI Misc Device Boot0003* CentOS Linux [2.2] Remove entry replacing the boolean value found in the above step # efibootmgr -Bb 0003 [3] Add UEFI boot entry for RHEL (Note: Replace the disk part shown in the below command with the disk that /boot/efi is on. # efibootmgr -c -d /dev/<disk> -p 1 -l \\EFI\\redhat\\shimx64.efi -L "Red Hat Enterprise Linux <insert a 7 or an 8 here depending>" Example: # efibootmgr -c -d /dev/sda -p 1 -l \\EFI\\redhat\\shimx64.efi -L "Red Hat Enterprise Linux 7" [4] Check if the new boot entry was added properly, by running the below command. # efibootmgr -v Example: [root@centos ~]# efibootmgr BootCurrent: 0003 Timeout: 0 seconds BootOrder: 0001,0002,0000 Boot0000* UiApp Boot0001* Red Hat Enterprise Linux 8 Boot0002* UEFI Misc Device [5] Reboot the system -------8<--------8<--------8<-------- 8<-------- 8<-------- 8<-------- 8<-------- If the system is already rebooted before following these steps. Then the system will be in a can't boot state. This can't boot issue can be resolved by booting system in rescue mode using RHEL ISO and following the same steps. The PR with the conversion inhibitor when UEFI is detected is prepared here: https://github.com/oamg/convert2rhel/pull/206 (this is temporary workaround until the proper handling of conversion for UEFI is prepared) Just for the info, the proper solution for UEFI support is in progress. The upstream PR: https://github.com/oamg/convert2rhel/pull/223 The workaround shared #comment 5 works with convert2rhel-0.17-1.el7.noarch, convert2rhel-0.17-1.el8.noarch (Self-supported version) Package links: https://github.com/oamg/convert2rhel/releases/download/v0.17/convert2rhel-0.17-1.el7.noarch.rpm https://github.com/oamg/convert2rhel/releases/download/v0.17/convert2rhel-0.17-1.el8.noarch.rpm But with the currently Red Hat shipped and supported convert2rhel-0.20-1.el7.noarch, convert2rhel-0.20-1.el8.noarch packages ( Supported version: http://ftp.redhat.com/redhat/convert2rhel/ ) It directly stops the conversion with the below messages: CRITICAL - Conversion of UEFI systems is currently not supported, see https://bugzilla.redhat.com/show_bug.cgi?id=1898314 for more information. No changes were made to the system. https://github.com/oamg/convert2rhel/pull/223 hasn't had an author posting since May 10. It is now less than 5 months before Centos 8 is EOL. Can we please see some progress on this? (In reply to jdravet from comment #14) > https://github.com/oamg/convert2rhel/pull/223 hasn't had an author posting > since May 10. It is now less than 5 months before Centos 8 is EOL. Can we > please see some progress on this? @jdravet, Greetings, and thank you for raising this question. We agree with you that this is a high priority fix that needs resolved soon. Currently we are blocked by our automated CI testing implementation to ensure that we are able to test this against a wide variety of hardware and virtual/cloud environments before declaring it "enterprise supported". I understand your frustrations and can only assure you that we agree and are working on it internally. Our CI testing is critical as one of our top goals is to ensure that we do no harm before we release it as ready to the broad user base. In the meantime, if you have a test environment that matches your hardware, you can use the workaround described in cmt13 to test that it works for you and if so, you should be able to proceed by testing the workaround described above. A reminder that documentation strongly recommends for all scenarios that backups be taken as a precaution. Best regards, Terry Bowling RHEL Product Management (this is to remediate confusion that might arise from #c12, #c13 and #c17) Here's an unsupported workaround for those who: 1. have a recoverable system backup 2. have done the preparation steps mentioned by Pradeep in https://bugzilla.redhat.com/show_bug.cgi?id=1898314#c5 Run the following command after installing convert2rhel: a) on CentOS/Oracle Linux 7: # sed -i 's| check_uefi|#check_uefi|' /usr/lib/python2.7/site-packages/convert2rhel/checks.py b) on CentOS/Oracle Linux 8: # sed -i 's| check_uefi|#check_uefi|' /usr/lib/python3.6/site-packages/convert2rhel/checks.py 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 (convert2rhel enhancement update), 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://access.redhat.com/errata/RHEA-2021:3834 Of note the link https://access.redhat.com/errata/RHEA-2021:3832 is broken. On another note, since this is a super common scenario I would hope an automated fix would be made to convert2rhel Errata page links are now working. Below is a complete list: RHEL 8 RHEA-2021:3833 https://access.redhat.com/errata/RHEA-2021:3833 RHEL 7 RHEA-2021:3834 https://access.redhat.com/errata/RHEA-2021:3834 RHEL 6 RHEA-2021:3832 https://access.redhat.com/errata/RHEA-2021:3832 |