I completed restoring a Rocky Linux 9.3 virtual machine running on VMware 7. The virtual machine has UEFI firmware and Secure Boot enabled. What is the process of installing GRUB boot loader to the chroot /boot and /boot/efi? What is the dracut command to rebuild the initramfs to chroot /boot?
I won’t ask what kind of ‘restore’ you did, so it still requires recreating boot entries
But I WILL ask: why chroot? If the old machine had BIOS instead of UEFI - just change the option in the VM options, boot normally via BIOS and create UEFI boot entries then?
Or - if you insist on booting from external source - use rocky installer and choose “troubleshooting” → “rescue a rocky OS”?