# \[SOLVED\] Grub prompt after CentOS 8 -\> RL8 migration

**URL:** <https://forums.rockylinux.org/t/solved-grub-prompt-after-centos-8-rl8-migration/2578>\
**Category:** Rocky Linux Help & Support\
**Created:** [May 8, 2021, 9:57pm UTC](https://forums.rockylinux.org/t/solved-grub-prompt-after-centos-8-rl8-migration/2578 "2021-05-08T21:57:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![knight-of-ni](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/knight-of-ni/32/884_2.png) [@knight-of-ni](https://forums.rockylinux.org/u/knight-of-ni)\
**Post date:** [May 8, 2021, 9:57pm UTC](https://forums.rockylinux.org/t/solved-grub-prompt-after-centos-8-rl8-migration/2578/1 "2021-05-08T21:57:52Z")

</div>

After my first two migrations went flawlessly in a kvm environment, but I ran into an EFI boot problem when performing the same migration on an HP Slimline. Upon the first reboot after the migration, I get dumped to a grub prompt with the message:

> System BootOrder not found. Initializing defaults.  
> Generating boot entry “Boot0000” with label “Rocky Linux” for file “\EFI\rocky\shimx64.efi”.

Secure boot is disabled and the file mentioned above does exist.

Rebooting again, the above message goes away, but I am still left staring at a grub prompt.

This is what I did to perform the migration:

> rpm -e --nodeps centos-gpg-keys centos-linux-release centos-linux-repos  
> rpm -ivh   
> [https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86\_64/os/Packages/rocky-release-8.3-11.el8.noarch.rpm](https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-release-8.3-11.el8.noarch.rpm)   
> [https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86\_64/os/Packages/rocky-repos-8.3-11.el8.noarch.rpm](https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-repos-8.3-11.el8.noarch.rpm)   
> [https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86\_64/os/Packages/rocky-gpg-keys-8.3-11.el8.noarch.rpm](https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-gpg-keys-8.3-11.el8.noarch.rpm)  
> dnf distro-sync -y

To troubleshoot, I have followed the steps for generating a new grub.cfg and also the steps for generating an entirely new /boot folder shown here: [How to Recover GRUB 2 Bootloader in CentOS 8 | CentLinux](https://www.centlinux.com/2019/12/how-to-recover-grub-2-bootloader-centos-8.html)

I’ve repeated this multiple times, using the path EFI/rocky and when that didn’t help, EFI/centos.

I’ve also run across Stack exchange articles that discuss moving the files under EFI/rocky to EFI/BOOT. Didn’t help either, but I’d rather not hack my system in this manner anyway.

The good news is I’ve got a Clonezilla backup of the disk so I can startover as many times as I’d like.

Any suggestions on how I can troubleshoot this further?

---

<div class="post-metadata">

**Author:** ![knight-of-ni](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/knight-of-ni/32/884_2.png) [@knight-of-ni](https://forums.rockylinux.org/u/knight-of-ni)\
**Post date:** [May 9, 2021, 2:54am UTC](https://forums.rockylinux.org/t/solved-grub-prompt-after-centos-8-rl8-migration/2578/2 "2021-05-09T02:54:37Z")

</div>

After restoring the disk and starting over, I issued `grub2-mkconfig --output=/boot/efi/EFI/rocky/grub.cfg` before rebooting, and all was well. The machine boots normally now.

Adding that step to the end of the upgrade procedure:

> rpm -e --nodeps centos-gpg-keys centos-linux-release centos-linux-repos  
> rpm -ivh  
> [https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86\_64/os/Packages/rocky-release-8.3-11.el8.noarch.rpm](https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-release-8.3-11.el8.noarch.rpm)  
> [https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86\_64/os/Packages/rocky-repos-8.3-11.el8.noarch.rpm](https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-repos-8.3-11.el8.noarch.rpm)  
> [https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86\_64/os/Packages/rocky-gpg-keys-8.3-11.el8.noarch.rpm](https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-gpg-keys-8.3-11.el8.noarch.rpm)  
> dnf distro-sync -y  
> grub2-mkconfig --output=/boot/efi/EFI/rocky/grub.cfg  
> REBOOT

---

<div class="post-metadata">

**Author:** ![StatiC](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@StatiC](https://forums.rockylinux.org/u/StatiC)\
**Post date:** [May 10, 2021, 8:06pm UTC](https://forums.rockylinux.org/t/solved-grub-prompt-after-centos-8-rl8-migration/2578/3 "2021-05-10T20:06:13Z")

</div>

Does this mean conversions of CentOS 8 that are in EFI Secure Boot mode will or will not work? Does rockylinux have a signed/trusted bootloader/kernel?

---

<div class="post-metadata">

**Author:** ![knight-of-ni](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/knight-of-ni/32/884_2.png) [@knight-of-ni](https://forums.rockylinux.org/u/knight-of-ni)\
**Post date:** [May 11, 2021, 1:39pm UTC](https://forums.rockylinux.org/t/solved-grub-prompt-after-centos-8-rl8-migration/2578/4 "2021-05-11T13:39:01Z")

</div>

I’m not entirely sure. I thought I read somewhere, either in this forum or on mattermost, that secure boot must be off, in order to transition properly from CentOS 8 → RL8. However, I can’t seem to find where I read that at the moment.

---

<div class="post-metadata">

**Author:** ![ralloway](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/ralloway/32/19_2.png) [@ralloway](https://forums.rockylinux.org/u/ralloway)\
**Post date:** [May 13, 2021, 6:05pm UTC](https://forums.rockylinux.org/t/solved-grub-prompt-after-centos-8-rl8-migration/2578/5 "2021-05-13T18:05:13Z")

</div>

I’ve been away for a week or so, so things _may_ have changed, but at the time the RC was released, SecureBoot was not supported. You can boot a UEFI system, but SecureBoot must be disabled.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [August 24, 2023, 4:44am UTC](https://forums.rockylinux.org/t/solved-grub-prompt-after-centos-8-rl8-migration/2578/6 "2023-08-24T04:44:46Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
