After walking through the code in gdb; I realize now that the --remove- duplicates only operates on the BootOrder variable; not any of the actual entries.
root@ubuntu:/home/ubuntu# efibootmgr -v --bootorder 0,1,2,2,2 BootNext: 0001 Timeout: 0 seconds BootOrder: 0000,0001,0002,0002,0002 Boot0000* UiApp FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331) Boot0001* ubuntu HD(1,GPT,ca2f6698-41ad-45df-812a-6aa744d7ddfb,0x800,0xff800)/File(\EFI\ubuntu\shimx64.efi) Boot0002* ubuntu HD(1,GPT,ca2f6698-41ad-45df-812a-6aa744d7ddfb,0x800,0xff800)/File(\EFI\ubuntu\shimx64.efi) root@ubuntu:/home/ubuntu# efibootmgr -v -D BootNext: 0001 Timeout: 0 seconds BootOrder: 0000,0001,0002 Boot0000* UiApp FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331) Boot0001* ubuntu HD(1,GPT,ca2f6698-41ad-45df-812a-6aa744d7ddfb,0x800,0xff800)/File(\EFI\ubuntu\shimx64.efi) Boot0002* ubuntu HD(1,GPT,ca2f6698-41ad-45df-812a-6aa744d7ddfb,0x800,0xff800)/File(\EFI\ubuntu\shimx64.efi) ** Changed in: efibootmgr (Ubuntu Focal) Status: Triaged => Invalid ** Changed in: efibootmgr (Ubuntu Eoan) Status: Triaged => Invalid ** Changed in: efibootmgr (Ubuntu Bionic) Status: Triaged => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863015 Title: efibootmgr --remove-dups does not work To manage notifications about this bug go to: https://bugs.launchpad.net/efibootmgr/+bug/1863015/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs