I'm dual booting Elementary OS and Windows. I'm seeing two Windows entries though and I'm not sure where refind is finding them.One is shown as Boot Microsoft EFI boot from ESP and the other is Boot bootmgfw.efi from ESP. Selecting either of them boots with Starting from bootmgfw.efi Using load options ''My efi directory looks like/boot/efi/    Boot/        BCD        bcd.trunc        bootfix.bin        boot.sdi        bootsect.exe        en-us/         Fonts/        Resources/    bootmgfw.efi    bootmgr    bootmgr.efi    EFI/        Boot/        dell/        Microsoft/            Boot/                bootmgfw.efi                bootmgr.efi                lots of other files            Recovery/                BCD                BCD.LOG                BCD.LOG1                BCD.LOG2        PEBoot/        refind/        tools/        ubuntu/    startup.nshMy refind.conf has the the entry dont_scan_dirs EFI/dell,EFI/PEBoot,EFI/ubuntu,EFI/BootI've tried adding EFI/Microsoft to dont_scan_dirs but both of them still show up.My disks look like:I've tried setting dont_scan_volumes to WINRETOOLS,Image,DELLSUPPORT but that doesn't keep both entries from showing up.Any ideas on what I can include in my conf file so that only one Windows entry shows up?
Duplicate Windows Entries
refind
The dont_scan_dirs list is a list of directories to skip when looking for efi files. Excluding a directory does not appear to exclude the entire tree at that point. Directories under an excluded one are still searched, just efi files in that explicitly named directory are ignored.To solve the issue you'll need to include the directories that have the efi files you don't want loaded. In your specific case that means adding EFI/Microsoft/Boot to the dont_scan_dirs list.