Bug 293385 - UEFI entries are no longer automatically created after installation
Summary: UEFI entries are no longer automatically created after installation
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Only Me
Assignee: Ahmad Khalifa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-23 14:19 UTC by Alexander Vereeken
Modified: 2026-02-26 18:17 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Vereeken freebsd_triage 2026-02-23 14:19:44 UTC
Hello,

i have observed that after installing FreeBSD, UEFI entries are no longer being created automatically.

While my system operates without any issues but some users have encountered problems because certain UEFI systems require explicit entries to function properly.

Thanks.
Comment 1 Warner Losh freebsd_committer freebsd_triage 2026-02-23 19:01:37 UTC
If you create them by hand with efibootmgr, does that survive reboot?
Comment 2 Ahmad Khalifa freebsd_committer freebsd_triage 2026-02-23 20:42:42 UTC
Seems to be a problem with bsdinstall.
https://reviews.freebsd.org/D55469 should help.
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-02-24 20:45:55 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=0fd91c489134643ac9e38c0f55ba7464fe892c5e

commit 0fd91c489134643ac9e38c0f55ba7464fe892c5e
Author:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
AuthorDate: 2026-02-24 20:11:32 +0000
Commit:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
CommitDate: 2026-02-24 20:42:21 +0000

    bsdinstall: fix EFI boot entry creation

    update_uefi_bootentry assumes that the caller sets FREEBSD_BOOTNAME and
    mntpt, which isn't the case anymore. The result is that there is no
    "FreeBSD" boot entry created/updated after install. Most machines manage
    to boot from the removable media path (if the loader is installed there
    too), but some don't.

    Take the loader's path as an argument and rename the variable used in
    the ZFS mirror loop so mntpt can be reused below.

    Also mark nentries as a local variable so it doesn't leak out of the
    function.

    PR:             293385
    Fixes:          494de51bc0074472d1b01604f085daea0844f240
    MFC after:      2 days
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D55469

 usr.sbin/bsdinstall/scripts/bootconfig | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-02-26 03:26:37 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=cfdd90abab51581120da75b45018a79237228b33

commit cfdd90abab51581120da75b45018a79237228b33
Author:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
AuthorDate: 2026-02-24 20:11:32 +0000
Commit:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
CommitDate: 2026-02-26 03:13:15 +0000

    bsdinstall: fix EFI boot entry creation

    update_uefi_bootentry assumes that the caller sets FREEBSD_BOOTNAME and
    mntpt, which isn't the case anymore. The result is that there is no
    "FreeBSD" boot entry created/updated after install. Most machines manage
    to boot from the removable media path (if the loader is installed there
    too), but some don't.

    Take the loader's path as an argument and rename the variable used in
    the ZFS mirror loop so mntpt can be reused below.

    Also mark nentries as a local variable so it doesn't leak out of the
    function.

    PR:             293385
    Fixes:          494de51bc0074472d1b01604f085daea0844f240
    MFC after:      2 days
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D55469

    (cherry picked from commit 0fd91c489134643ac9e38c0f55ba7464fe892c5e)

 usr.sbin/bsdinstall/scripts/bootconfig | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-02-26 03:26:39 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=5425bdae09703d028a1e48180e0709ad4e86af12

commit 5425bdae09703d028a1e48180e0709ad4e86af12
Author:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
AuthorDate: 2026-02-24 20:11:32 +0000
Commit:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
CommitDate: 2026-02-26 02:03:53 +0000

    bsdinstall: fix EFI boot entry creation

    update_uefi_bootentry assumes that the caller sets FREEBSD_BOOTNAME and
    mntpt, which isn't the case anymore. The result is that there is no
    "FreeBSD" boot entry created/updated after install. Most machines manage
    to boot from the removable media path (if the loader is installed there
    too), but some don't.

    Take the loader's path as an argument and rename the variable used in
    the ZFS mirror loop so mntpt can be reused below.

    Also mark nentries as a local variable so it doesn't leak out of the
    function.

    PR:             293385
    Fixes:          494de51bc0074472d1b01604f085daea0844f240
    MFC after:      2 days
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D55469

    (cherry picked from commit 0fd91c489134643ac9e38c0f55ba7464fe892c5e)

 usr.sbin/bsdinstall/scripts/bootconfig | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2026-02-26 18:17:01 UTC
A commit in branch releng/14.4 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=3cf73e195af3d4693d1e52de0a91b6d4b3fb8b5c

commit 3cf73e195af3d4693d1e52de0a91b6d4b3fb8b5c
Author:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
AuthorDate: 2026-02-24 20:11:32 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-02-26 16:50:15 +0000

    bsdinstall: fix EFI boot entry creation

    update_uefi_bootentry assumes that the caller sets FREEBSD_BOOTNAME and
    mntpt, which isn't the case anymore. The result is that there is no
    "FreeBSD" boot entry created/updated after install. Most machines manage
    to boot from the removable media path (if the loader is installed there
    too), but some don't.

    Take the loader's path as an argument and rename the variable used in
    the ZFS mirror loop so mntpt can be reused below.

    Also mark nentries as a local variable so it doesn't leak out of the
    function.

    PR:             293385
    Fixes:          494de51bc0074472d1b01604f085daea0844f240
    MFC after:      2 days
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D55469

    (cherry picked from commit 0fd91c489134643ac9e38c0f55ba7464fe892c5e)
    (cherry picked from commit cfdd90abab51581120da75b45018a79237228b33)

 usr.sbin/bsdinstall/scripts/bootconfig | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)