rocky-tools
rocky-tools copied to clipboard
Information about resolving sysroot error
From testing on a few dedicated server providers, I ran into an issue with GRUB not working properly after the upgrade to RockyLinux 8.5
Example error message:
This is fixable by remounting all drives within a rescue system, then rebuilding grub cfg.
We currently have some similar code in the fix_efi function to fix up EFI boot. Should we be doing this for legacy boot as well?
We currently have some similar code in the fix_efi function to fix up EFI boot. Should we be doing this for legacy boot as well?
Perhaps we should. The servers I was having issues with were booting via legacy BIOS. I'll suggest those modifications perhaps?
Yes, it's unusual for legacy boot to require running grub2-mkconfig, but it shouldn't hurt. Do you want to open a new PR for that? Follow the example of fix_efi and make another function fix_legacy that just does the appropriate command, and call that if EFI boot is not set (from the same place where we call fix_efi).
I would suggest a cleaner way of dealing with this: https://github.com/rocky-linux/rocky-tools/pull/162 Indeed, we do need to run grub2-mkconfig -o /boot/grub2/grub.cfg on a machine, that boots the BIOS way even if it is UEFI capable.