Description
System information
Type | Version/Name |
---|---|
Distribution Name | Gentoo |
Distribution Version | ~amd64 |
Kernel Version | 6.4.15 (but also on 6.3.x) |
Architecture | amd64 |
OpenZFS Version | 2.2.0-rc3 (but also on stable 2.1.12) |
Describe the problem you're observing
This occured after I changed the motherboard in my home server.
I had to recompile the kernel/modules to boot the system so I used Ubuntu livecd (23.04) with chroot, recompiled the kernel and ran grub-mkconfig. It failed (I don't remember how exactly), but I expected that and corrected the next boot by hand. The changes made were related to graphics/framebuffer, nothing like architecture setting was touched
After booting into the real system I recompiled the kernel again and ran grub-mkconfig, only to discover it still doesn't boot properly because ${rpool} used by mkconfig was empty
This is because:
# grub-probe --device /dev/nvme0n1p4 /dev/nvme1n1p4 --target=fs_label
grub-probe: error: compression algorithm inherit not supported
My rpool is a mirror of two nvme device partitions:
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
nvme-eui.0000000001000000e4d25c6114d64f01-part4 ONLINE 0 0 0
nvme-eui.0000000001000000e4d25c324dd64f01-part4 ONLINE 0 0 0
It doesn't fail for my boot pool which looks the same but only has a single (root pool) filesystem mounted at /boot
I have not touched rpool configuration at all, I have not enabled any new features (unless Ubuntu or it's systemd-operating-system decided to do that for me somehow), but I don't think so and zpool history concurs.
Not enabled features:
rpool
draid
zilsaxattr
head_errlog
blake3
block_cloning
vdev_zaps_v2
I tried setting compression explicitely (compression=on, compression=lz4), deleting snapshots in case it's related to an old bug I found (but nothing was changed according to zpool history), recompiling grub, upgrading ZFS and recompiling grub.
The system still boots if I change
LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs%/}"
to
LINUX_ROOT_DEVICE="ZFS=rpool/${bootfs%/}"
It's just grub-probe that fails.
Describe how to reproduce the problem
No idea what changed for this to happen.
Any ideas what this might be or how to provide a useful debug? Should I bug GNU/Grub guys with this? I can try grub-2.12-rcX but I didn't find anything in the changelog and I'd rather find the problem first.
Thanks!