Dual boot with Secure Boot - Windows 11 SSD + Batocera SSD - the "easy" way using rEFInd!
\*\*Note: This is only really necessary if you need Windows 11 with Secure Boot enabled - many popular online games require Windows 11, Secure Boot, and TPM 2.0. If you don't need Secure boot, you can skip all the steps regarding Secure Boot/EFI and just install rEFInd using the Ubuntu desktop live to make a multi boot menu with all your working operating systems\*\*
After a few hours of research and a bunch of non answers here ("just use the BIOS menu"), i finally got dual boot working with a nice menu and no messing about in the bios once fully configured.
All I needed was:
* Windows 11 installed on its own drive with Secure Boot enabled * Batocera 41 or 42 installed on its own drive with [Secure Boot enabled](https://wiki.batocera.org/secureboot) * [Ubuntu Desktop](https://ubuntu.com/download/desktop) 25.10 on a 8GB+ USB drive (download ISO and burn to USB with [Balena Etcher](https://etcher.balena.io/) or similar tool)
Initially for Batocera to load with Secure Boot you have to enroll its key into the MOK Manager as described in the WIKI. **At this point, I could boot into Windows OR Batocera depending on how the boot order was set in the BIOS** (or using the BIOS boot menu). Easy enough for someone computer savvy, but for the average user its too much trouble.
At this point, boot your Ubuntu USB (making sure you have internet access), open terminal and run 2 commands: sudo apt update sudo apt install refind
Select Y to install rEFInd on the EFI System Partition ((ESP), this is on the Windows boot drive). After this you can shut down your computer, remove the USB drive, power on, go to the BIOS
Once in the BIOS, select "rEFInd Boot Manager" as Boot Option #1. If you were to reboot now you'd get an error as rEFInd's EFI is not trusted yet and your system will load into the Boot Option #2. So if needed, reboot back into the bios, then under Secure Boot, you have to manage the keys then import rEFInd's EFI.
On my Gigabyte X370M motherboard, this was found under **BIOS** \> **Secure Boot**. Make sure Secure Boot is **Enabled** & **Active**, and Secure Boot Mode is set to **Custom**. Then under **Expert Key Management** \> **Enroll EFI Image**. I had 4 choices here based on my 2 installed SSD. More than one drive may have an **<EFI>** folder, but only 1 has a **<refind>** subfolder. On this selection (for me it was the first on the list), navigate into **EFI** \> **refind** and import the file **refind\_x64.efi**. Save and Exit the bios.
At this point now the "rEFInd Boot Manager" will load to the blue screen of the MOK manager. Similar to how you had to go through the steps to trust Batocera, you have to do it again for rEfind. Select "Enroll key from disk, and then navigate though the to **EFI** \> **refind** \> **keys** folder and select the file **refind.cer** to import.
Upon restart, I now can boot into the rEFInd menu with 3 options, A Windows Icon (Windows 11) the Unknown OS Icon (Batocera) and a Tux icon (crashes). so i press delete over the Tux icon to hide it.
Last but not least i made a Batocera icon to replace the Unknown OS icon. I copied it to the EFI partition in the /efi/refind/icons folder. I renamed the old icon just in case i decide to customize the boot menu any further.

If you have a different motherboard then the steps to enroll the EFI may be slightly different. Bun in general this should work as long as you follow the steps for your system to enroll EFI images in the bios. If you ever reset your bios i suspect you'll have to go through these steps again to trust the EFI in the bios and the certs for both Batocera & rEFInd in the MOK manager.
edit: added note