I just did a BIOS update on my Lenovo Ideacenter running Almalinux-8.6 and Windows-10. Of curse, the update had to be done from Windows, and once completed it has disabled my grub bootloader and goes directly into Windows. I can boot linux using SystemRescueCD, but grub2-install fails thus:
[john@alma ~]$ sudo grub2-install /dev/sda
grub2-install: error: this utility cannot be used for EFI platforms because it does not support UEFI Secure Boot.
If I disable "Secure Boot" I get "no operating system found."
I've also tried SuperGrub, BootRepair, and (from Windows) EasyBCD. SuperGrub fails in a manner similar o that described above. BootRepair fails with "Please enable a repository containing the [grub-efi-amd64-signed] packages in the software sources of AlmaLinux 8.6 (Sky Tiger) (mapper/almalinux-root). Then try again." but no indication of where or how this repo should be added. The SourceForge page for BootRepair doesn't show a way to ask for help. EasyBCD fails to find my linux installation.
What are my options? Should I re-install almalinux and hope it can fix grub? Seems like a pile of work for what ought to be a simple task.
For the time being, I can use my almalinux installation by booting from SystemRescueCD nd using its "findroot" boot option. Almost everything works, except, notably, nfs. Systemctl shows proc-fs-nfsd.mount as the problem:
systemctl list-dependencies nfs-server
● │ └─NetworkManager-wait-online.service