Re: "Cannot find the pool label for 'zroot'" after FreeBSD 13.1-BETA2 install

From: Kyle Evans <kevans_at_freebsd.org>
Date: Fri, 22 Apr 2022 15:55:17 UTC
On Sun, Mar 20, 2022 at 6:28 PM Pierre Beyssac <pb@fasterix.frmug.org> wrote:
>
> Hi all,
>
> In case this hasn't been reported.
>
> I've been testing a FreeBSD 13.1 BETA2 USB image and, after installing
> with the default "ZFS root install", the new system fails to mount
> root after loading the kernel, then stops in the loader.
>
> How to reproduce:
>         - boot the image
>         - select "Auto (ZFS) Guided Root-on ZFS" in the partioning
>           menu
>         - Select:
>                 Pool type: stripe (default)
>                 Encrypt Disk: YES
>                 Swap Size: 164 GB
>                 Encrypt Swap: YES
>                 Other options: default
>         - continue installation
>         - reboot
>         - type the GELI passphrase
>
> =>
> Kernel boots then:
>
> Solaris: NOTICE: Cannot find the pool label for 'zroot'
> Solaris: NOTICE: Cannot find the pool label for 'zroot'
> Solaris: NOTICE: Cannot find the pool label for 'zroot'
> ...
> Solaris: NOTICE: Cannot find the pool label for 'zroot'
> Mounting from zfs:zroot/ROOT/default failed with error 5.
>
> Loader variables:
> ...
>
>
>
> On the exact same hardware, it works with a stock 13.0-RELEASE USB
> image. I haven't tried with former 13.1 images.
>
> This happens on a ASUS motherboard (B550M-A wifi) with a Ryzen 5
> 5600G, 64 GB RAM and NVME disk, in case it matters.
>

Hi,

Graham Perrin pointed this e-mail out in a bug report. I suspect you
hit the same root problem as this later report, which is now fixed and
will land in -rc5:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263407

Odds are that back in loader, geom_eli.ko failed to load so the kernel
can't decrypt the partition in order for zfs to find its pool.

Thanks,

Kyle Evans