-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error installing required packages: shim-x64 grub2-efi-x64 #175
Comments
As I understand, Right now, servers are running on an "old" EFI / grub configuration. Servers restarts successfully without any errors. I don't know well this part of the system. But, as I understand, EFI firmware is not updated, currently configured with the latest Centos8 grub configuration. Is this a problem? |
Can you attach the /var/log/migrate2rocky.log file from the migration, please? |
shim-x64 grub2-efi-x64 do indeed exist in the baseos repo. Check to see that you haven't excluded them: |
@pajamian well done !
I think this has been configured by our instance provider (scaleway.com). Do you think I have to remove exclusion and try to complete the migration process? Best regards, |
I think there's a reason they put that there which has to do with how the instance boots. I would contact your provider and ask for advice. I get the feeling that it's actually not an EFI boot system but presents as such to migrate2rocky, or they're doing something funny with efi boot which means that replacing that could cause issues. I would appreciate hearing back when you find out, issues such as this deserve at least an entry in the "known issues" section of the README file so that others can be forewarned about it. |
The first answer from the provider.
The second message.
|
I try on a staging server the following. Remove
Note: Before running the final Server has been reboot successfully. |
That's a very helpful response and good advice. Copying the instance before proceeding is also a good idea as it's easy to mess up the uefi steps and end up making the instance unbootable.Once you've got the instance copied you'll want to install the shim and grub packages in question. Then look at the fix_efi function in migrate2rocky, there are two commands in there you'll need to run and just substitute the boot disk and partition number in. After that your instance should be properly configured for rocky linux and should boot properly. Good luck and let me know how it goes. Peter Sent from my Galaxy
|
Yep that's pretty much what I was already saying although did you install the new shim-x64 and grub2-efi-x64?Sent from my Galaxy
-------- Original message --------From: Thomas Tourlourat ***@***.***> Date: 25/05/22 3:00 am (GMT+12:00) To: rocky-linux/rocky-tools ***@***.***> Cc: Peter Ajamian ***@***.***>, Mention ***@***.***> Subject: Re: [rocky-linux/rocky-tools] Error installing required packages: shim-x64 grub2-efi-x64 (Issue #175)
I try on a staging server the following.
Remove shim-x64 grub2-efi-x64 grub2-tools-minimal grub2-tools-extra grub2-tools grub2-common grub2-pc grub2-pc-modules from /etc/dnf/dnf.conf.
grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg
efi_mount=$(findmnt --mountpoint /boot/efi --output SOURCE --noheadings)
kname=$(lsblk -dno kname "$efi_mount")
efi_disk=("$(lsblk -dno pkname "/dev/$kname")")
efi_partition=("$(<"/sys/block/${efi_disk[0]}/$kname/partition")")
efibootmgr -c -d "/dev/${efi_disk[0]}" -p "${efi_partition[0]}" -L "Rocky Linux" -l "/EFI/rocky/shimx64.efi"
Note: Before running the final efibootmgr command, I displayed the $efi_disk variable content to check how many disk. echo $efi_mount # /dev/vda1.
Server has been reboot successfully.
@pajamian I let you confirm the process.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@pajamian previous comment have been edited to add Thank you for your support ;) Regards. |
Hi there.
I'm getting the following errors on two different Centos8 servers.
Here what I'm getting after running
./migrate2rocky.sh -r
.Any clue?
The text was updated successfully, but these errors were encountered: