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

From: Pierre Beyssac <pb_at_fasterix.frmug.org>
Date: Sun, 20 Mar 2022 22:52:43 UTC
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.
-- 
Pierre Beyssac	      	    		pb@eriomem.net