Rocky 8.4 with ZFS Root

Hey, I’m trying to install Rocky 8.4 on a ZFS root. So far, I’ve got ZFS installed, a raidz2 root pool, and copied the system over to the new pool. The issue I’m having is when I try to generate a config for grub. When I run grub2-mkconfig, ioctl starts up, but then it says
device-mapper: table: 253:0: linear: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: reload ioctl on osprober-linux-sdx2 (253:0) failed: Device or resource busy.

This happens for all my drives. I chrooted into the root pool before running the grub command. How do I get the resource to not be busy?

Have a look if what is written here under grub-probe fails a possible solution.
https://openzfs.github.io/openzfs-docs/Getting%20Started/Arch%20Linux/Root%20on%20ZFS/5-bootloader.html

Even with export VDEV name path enabled, I still get the same error. It’s weird, because it’s not that it cant’ get the canonical name, it’s like the device is busy.