rocky-tools icon indicating copy to clipboard operation
rocky-tools copied to clipboard

Information about resolving sysroot error

Open lstefan1520 opened this issue 3 years ago • 4 comments

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: image image

This is fixable by remounting all drives within a rescue system, then rebuilding grub cfg.

lstefan1520 avatar Jan 29 '22 23:01 lstefan1520

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?

pajamian avatar Jan 30 '22 00:01 pajamian

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?

lstefan1520 avatar Jan 30 '22 01:01 lstefan1520

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).

pajamian avatar Jan 30 '22 03:01 pajamian

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.

komitov avatar Feb 18 '22 15:02 komitov