I had a dual-boot Windows-EOS laptop with two separate EFI partitions for each OS. For some reason, I had to reinstall Windows 11 by formatting the previous C drive and reinstalling to the same drive. I rebooted into Linux thinking that I would need to fix the boot entries to be able to boot into Windows 11 from the Linux boot loader, but to my surprise there is no boot entry conf file for Windows 11, and yet the Windows 11 boot entry is there when I boot my system along with two entries each for the Linux kernel. Even more surprising was that I didnβt have to change anything, and choosing Windows 11 on the boot screen still boots correctly after reinstalling.
$ tree /efi/loader
/efi/loader
βββ entries
β βββ dae011a0185549498c026c184a0049e8-6.6.31-2-lts.conf
β βββ dae011a0185549498c026c184a0049e8-6.6.31-2-lts-fallback.conf
β βββ dae011a0185549498c026c184a0049e8-6.9.1-arch1-2.conf
β βββ dae011a0185549498c026c184a0049e8-6.9.1-arch1-2-fallback.conf
βββ entries.srel
βββ loader.conf
βββ random-seed
There is a Microsoft folder in the /efi/EFI folder, but the date modified time of its files hint that they are all related to older Windows installation.
Can anyone explain, what I am missing? Should I copy any EFI related files from Windowsβ EFI partition and replace them here? Or should I let it work as it is if I am able to boot in right OSs correctly.