--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: efibootmgr: option delete-bootnum not working
- From: capsicum <capsicumw@gmail.com>
- Date: Thu, 28 Dec 2017 19:47:59 -0800
- Message-id: <151451927943.3045.1105086889634536329.reportbug@tesla0.gnet>
Package: efibootmgr
Version: 14-2
Severity: normal
Dear Maintainer,
I reflashed my firmware (Gigabyte AM3+ motherboard, model ga990fxa-ud3 v4.0, to firmware version 'F3') after a system failure of uncertain cause a few days ago.
Lost most existing boot entries in the proccess, machine is triple booted with Debian Stretch, CentOS7, and Windows7 all on sda partions. I used a the boot menu of a live Manjaro USB drive to select and boot the existing Debian from sda.
>From within Debian:
I created two bootnums with with the basic comand format 'efibootmgr -c -L Debian -l \EFI\debian\grubx64.efi ' in this case it was entry 0005.
After noticing that backslashes need to be escaped I attempted to delete boot entry 0005 with `efibootmgr -B 0005`, as well as all combinations of short '-B' and long option '--delete-bootnum' with 0005, 5, Boot0005, boot0005, Boot5, boot5, Debian[Label of the entry]. (Manpage is slightly ambiguous about specific syntax details like leading zeros and escapes.)
Attempts to delete 0005 were made both before reboot and again after.
Attempted with both sudo and as root.
No entries were deleted.
In all cases it either returned 'You must specify an entry to delete (see the -b option).' or with the default help menu.
-- System Information:
Debian Release: 9.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.13.0-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages efibootmgr depends on:
ii libc6 2.24-11+deb9u1
ii libefiboot1 30-2
ii libefivar1 30-2
ii libpopt0 1.16-10+b2
efibootmgr recommends no packages.
efibootmgr suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
- To: 885683-close@bugs.debian.org
- Subject: Re: Bug#885683: Modify boot, -b option
- From: Steve McIntyre <steve@einval.com>
- Date: Sun, 18 Dec 2022 19:47:41 +0000
- Message-id: <20221218194741.GA1933736@tack.einval.com>
- In-reply-to: <20180111153013.74b5a3cb@nuc7i5.home>
- References: <151451927943.3045.1105086889634536329.reportbug@tesla0.gnet> <20180111153013.74b5a3cb@nuc7i5.home>
On Thu, Jan 11, 2018 at 03:30:13PM +0000, Martin King wrote:
>I have just deleted a boot entry using the same version of efibootmgr.
>The -b modify option is used in conjunction with the -B delete option;
>
>e.g.
>efibootmgr -b 1 -B
Nod, there's no bug here.
--
Steve McIntyre, Cambridge, UK. steve@einval.com
"Yes, of course duct tape works in a near-vacuum. Duct tape works
anywhere. Duct tape is magic and should be worshipped."
-― Andy Weir, "The Martian"
--- End Message ---