Page MenuHomeFreeBSD

bsdinstall: bootconfig: Try to clean old efi boot entries
ClosedPublic

Authored by manu on Dec 8 2021, 9:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 12:35 PM
Unknown Object (File)
Oct 12 2024, 4:25 AM
Unknown Object (File)
Oct 9 2024, 1:49 AM
Unknown Object (File)
Oct 9 2024, 1:49 AM
Unknown Object (File)
Oct 9 2024, 1:48 AM
Unknown Object (File)
Oct 9 2024, 1:48 AM
Unknown Object (File)
Oct 9 2024, 1:27 AM
Unknown Object (File)
Oct 8 2024, 9:02 PM

Details

Summary

If one install FreeBSD on the same machine multiple times in a row or
on different harddrive they have a lot of 'FreeBSD' efi boot entries added.
With this patch we now do :

  • If there is no 'FreeBSD' entry we add one like before
  • If there is one or more entries we ask the user if they want to delete them all and add a new one
    • If they say yes we do that
    • If they say no we prompt them an inputbox so they can enter a different entry name if they want, it defaults to 'FreeBSD'

MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43227
Build 40115: arc lint + arc unit

Event Timeline

manu requested review of this revision.Dec 8 2021, 9:41 AM
bapt requested changes to this revision.Dec 8 2021, 9:45 AM
bapt added a subscriber: bapt.
bapt added inline comments.
usr.sbin/bsdinstall/scripts/bootconfig
68

efibootmgr | grep -c 'FreeBSD$'

76

$DIALOG ?

This revision now requires changes to proceed.Dec 8 2021, 9:45 AM

Address bapt's comments.

manu marked 2 inline comments as done.Dec 8 2021, 9:50 AM
This revision is now accepted and ready to land.Dec 8 2021, 9:50 AM

This ticks all my boxes. It's optional, it prompts the user, and it appears to do the right sort of things to manage the list.