Bug 296309 - loader.efi: Cannot find boot pool (Root on ZFS) on main at commit base 3e3fd1fde8e1
Summary: loader.efi: Cannot find boot pool (Root on ZFS) on main at commit base 3e3fd...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 16.0-CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-27 04:07 UTC by Tomoaki AOKI
Modified: 2026-07-10 17:52 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoaki AOKI 2026-06-27 04:07:01 UTC
After updating from commit base 7140742c8c68 to commit base be9295deedd1, loader.efi (when kicked from boot1.efi, at least) cannot find root pool and drop to loader prompt (not loader menu).

As commits to stand/ were limited inbetween, tried advancing commits instead of bisecting, and turned out commit base 3e3fd1fde8e1 triggers the issue.
Comment 1 Warner Losh freebsd_committer freebsd_triage 2026-06-27 04:40:55 UTC
Is there more than one disk in this system?
Comment 2 Warner Losh freebsd_committer freebsd_triage 2026-06-27 05:27:34 UTC
Also, does reverting that commit on the tip of main still exhibit the problem or not?
Comment 3 Tomoaki AOKI 2026-06-27 09:55:08 UTC
(In reply to Warner Losh from comment #1)
Yes.

Root-on-ZFS stable/15 on nda0 and Root-on-ZFS main on nda1.
Both are NOT detected. No UFS partition exists.

Note that this is reproducible with and without patch at D57821 (boot menu fix).
Comment 4 Tomoaki AOKI 2026-06-27 10:13:31 UTC
(In reply to Warner Losh from comment #2)
Switched back to locally pulled head (commit base be9295deedd1) and reverted commit base 3e3fd1fde8e1 alone resolved the issue.

Now found more commits are done to stand/after commit base be9295deedd1.
Reading the diffs, seemingly wouldn't affect (fixes for GCC and SPDX), but to be sure, will try upgrading again with reverted commit base 3e3fd1fde8e1 alone.

I'll report back once the upgrade finishes.
Comment 5 Tomoaki AOKI 2026-06-27 14:52:13 UTC
(In reply to Tomoaki AOKI from comment #4)
Updating to commit base d0b3ecdc2749 finished.

Without commit base 3e3fd1fde8e1 reverted, drops to loader prompt (erroneous).

With commit base 3e3fd1fde8e reverted, sanely shows loader menu and boots fine (with patch at D57821 applied). Loader menu works fine, at least standard boot with "Enter" key and single user mode with "2" key worked.
Comment 6 Warner Losh freebsd_committer freebsd_triage 2026-06-27 21:20:22 UTC
OK. I'll revert this change.

And I need to once again see if I can get a good test suite going... but that's a problem for another time.
Comment 7 commit-hook freebsd_committer freebsd_triage 2026-07-10 04:19:16 UTC
A commit in branch main references this bug:

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

commit c8842f1d18ae136cf5e3144540f76c7ebe0cd28a
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-07-10 04:04:52 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-07-10 04:09:41 +0000

    Revert "loader.efi: Trim ZFS searching for other booting options"

    This reverts commit 3e3fd1fde8e168910edc538966111c0b5f03cd5f.

    This appears to break chainbooting with boot1.efi and similar scenarios
    with Root-on-ZFS scenarios. Revert until it's better understood.

    PR: 296309
    Sponsored by: Netflix
    Differential Revision:  https://reviews.freebsd.org/D58071

 stand/efi/loader/main.c | 30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)
Comment 8 Tomoaki AOKI 2026-07-10 10:47:41 UTC
(In reply to commit-hook from comment #7)
Thanks!
Comment 9 Warner Losh freebsd_committer freebsd_triage 2026-07-10 17:52:50 UTC
(In reply to Tomoaki AOKI from comment #8)
Sorry it took so long... 

I'll go ahead and close this.