Good day, before I proceed into the problem proper, let me provide some context: prior to me attempting the below procedure, my laptop, dual-booting Fedora 36 and Windows 10, only boots into BIOS. Changing boot orders, restoring BIOS to defaults, and boot overrides didn’t work so I attempted the following from a Fedora 36 Live USB:
sudo su
mount /dev/mapper/live-rw /
mount /dev/sda6 /boot
mount /dev/sda1 /boot/efi
for dir in /dev /proc /sys /run; do mount --bind $dir /$dir ; done
chroot /
rm /etc/grub.d/*
rm /etc/sysconfig/grub
dnf reinstall grub2-efi shim grub2-tools
grub2-mkconfig -o /boot/grub2/grub.cfg
exit
poweroff
Taking out the USB and powering on took me to a GRUB menu. However, this GRUB menu only shows “UEFI Firmware Settings”, despite the fact that when I ran grub2-mkconfig -o /boot/grub2/grub.cfg
it says that Fedora 36 is detected. Redoing the procedure yielded the same results. I could still access my files upon mounting /dev/sda6
. I suspect I may have botched the chrooting procedure. Running efibootmgr
after exiting chroot
tells me something about EFI variables not being supported/detected. Is there anything else I can do?