Bug 261142

Summary: Booting a CURRENT kernel on a FreeBSD 13.0 created zpool doesn't work
Product: Base System Reporter: Emmanuel Vadot <manu>
Component: kernAssignee: freebsd-fs (Nobody) <fs>
Status: Closed Not A Bug    
Severity: Affects Many People    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
verbose boot
none
verbose boot 13-STABLE none

Description Emmanuel Vadot freebsd_committer freebsd_triage 2022-01-12 10:02:04 UTC
While working on upgrade for pkgbase I've tried to upgrade a freshly installed FreeBSD 13.0 to CURRENT.
Steps I did :
- Install a fresh FreeBSD 13.0 on the machine
  No customization except for unselecting kernel-dbg and src so it installed quickly
  ZFS root on the nvme drive, stripe mode.
- Install the FreeBSD-kernel-generic package from a 14.0 repo
- Boot the machine and it fails to find the zpool with "failed with error 6" message.

Even if it's pkgbase I assume that compiling a kernel by hand and try booting it would cause the same issue.

I've tried to also upgrade loader.efi on the ESP in case a newer one was needed but it didn't fixed the problem.
Comment 1 Emmanuel Vadot freebsd_committer freebsd_triage 2022-01-12 10:09:52 UTC
Just tested with UFS root and it works.
Comment 2 Emmanuel Vadot freebsd_committer freebsd_triage 2022-01-12 10:40:43 UTC
Tested to upgrade to 13-STABLE as I had an old-ish pkgbase set from december 11 (stable/13-155748c1e) and it worked.
Comment 3 Emmanuel Vadot freebsd_committer freebsd_triage 2022-01-12 10:44:40 UTC
Created attachment 230945 [details]
verbose boot
Comment 5 Emmanuel Vadot freebsd_committer freebsd_triage 2022-01-12 11:01:48 UTC
Created attachment 230946 [details]
verbose boot 13-STABLE
Comment 6 Emmanuel Vadot freebsd_committer freebsd_triage 2022-01-13 10:30:35 UTC
Opened a new bug #261171

I remembered that I had this problem some time ago so a new bug will be more clear.