Public bug reported:

1.
# lsb_release -rd
Description:    Ubuntu Focal Fossa (development branch)
Release:        20.04

2.

# apt-cache policy efibootmgr
efibootmgr:
  Installed: 15-1
  Candidate: 15-1
  Version table:
 *** 15-1 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

3. efibootmgr --remove-dups should remove the duplicate entry in boot list
4. efibootmgr does not remove the duplicate


== Steps to reproduce ===
1. install grub-efi to the ESP

+ grub-install --root-directory=/mnt --efi-directory=/mnt/boot/efi --force 
--target=x86_64-efi --skip-fs-probe --bootloader-id=ubuntu
Installing for x86_64-efi platform.
Installation finished. No error reported.
+ efibootmgr -v
Timeout: 0 seconds
BootOrder: 0001,0000
Boot0000* UiApp 
FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0001* ubuntu        
HD(1,GPT,55dbc307-5953-4693-b640-e2199025db67,0x800,0xff800)/File(\EFI\ubuntu\shimx64.efi)

2. Add a second entry pointing to the same esp
efibootmgr --create --write-signature --label ubuntu --disk /dev/vda --part 1 
--loader \EFI\ubuntu\shimx64.efi
efibootmgr: ** Warning ** : Boot0001 has same label ubuntu
Timeout: 0 seconds
BootOrder: 0002,0001,0000
Boot0000* UiApp
Boot0001* ubuntu
Boot0002* ubuntu

3. Show verbose entrys
+ efibootmgr --verbose
Timeout: 0 seconds
BootOrder: 0002,0001,0000
Boot0000* UiApp 
FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0001* ubuntu        
HD(1,GPT,55dbc307-5953-4693-b640-e2199025db67,0x800,0xff800)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* ubuntu        
HD(1,GPT,55dbc307-5953-4693-b640-e2199025db67,0x800,0xff800)/File(\EFI\ubuntu\shimx64.efi)

4. Attempt to remove duplicate
+ efibootmgr --remove-dups
Timeout: 0 seconds
BootOrder: 0002,0001,0000
Boot0000* UiApp
Boot0001* ubuntu
Boot0002* ubuntu

5. Verbose listing
+ efibootmgr -v
Timeout: 0 seconds
BootOrder: 0002,0001,0000
Boot0000* UiApp 
FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0001* ubuntu        
HD(1,GPT,55dbc307-5953-4693-b640-e2199025db67,0x800,0xff800)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* ubuntu        
HD(1,GPT,55dbc307-5953-4693-b640-e2199025db67,0x800,0xff800)/File(\EFI\ubuntu\shimx64.efi)

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: efibootmgr 15-1
ProcVersionSignature: Ubuntu 5.4.0-12.15-generic 5.4.8
Uname: Linux 5.4.0-12-generic x86_64
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
Date: Wed Feb 12 20:29:33 2020
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: efibootmgr
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: efibootmgr (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal rls-ff-incoming uec-images vmtest

** Tags added: rls-ff-incoming

-- 
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/ubuntu/+source/efibootmgr/+bug/1863015/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to