Bug 257458 - efibootmgr(8) does not respect --dry-run for most operations
Summary: efibootmgr(8) does not respect --dry-run for most operations
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-27 19:21 UTC by Yang Zhong
Modified: 2021-07-28 17:31 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yang Zhong 2021-07-27 19:21:24 UTC
When I use efibootmgr to delete boot entries, I expect something like

efibootmgr --dry-run -B -b 0015

to display which entry it would delete, but not actually delete it. In reality, it deletes the entry. Looking at the source, it appears that the dry-run flag is only considered when creating new boot entries, but the man page gives no indication of this.
Comment 1 Warner Losh freebsd_committer 2021-07-28 17:31:30 UTC
Yes, the current situation isn't as documented. I'll see how
hard it is to make dry-run honored by all the different actions
that can be done.