When using ZFS on root, grub2 is not able to find the ZFS filesystem after a pool upgrade. Reproducible: Always Steps to Reproduce: grub2-probe -t fs / Actual Results: grub-probe error: unknown filesystem Expected Results: zfs grub-2.02_beta2-r7.ebuild call epatch_user. So adding the patch grub-2.00-zfs-feature-flag-support-hole_birth-embedded_data.patch into /etc/portage/patches/sys-boot/grub fix the problem.
Created attachment 403132 [details, diff] grub-2.00-zfs-feature-flag-support-hole_birth-embedded_data.patch
Comment on attachment 403132 [details, diff] grub-2.00-zfs-feature-flag-support-hole_birth-embedded_data.patch add zfs features : hole_birth and embedded_data
Comment on attachment 403132 [details, diff] grub-2.00-zfs-feature-flag-support-hole_birth-embedded_data.patch Err, that patch seems a bit small. The patches that were applied upstream seem quite a bit more complex than adding a string to an array.
The goal of this draft-patch is not to implement new features into grub, but only to be able to boot after a pool upgrade.
(In reply to nico from comment #4) > The goal of this draft-patch is not to implement new features into grub, but > only to be able to boot after a pool upgrade. What happens when grub encounters data id doesn't know how to properly deal with?
(In reply to Mike Gilbert from comment #5) > (In reply to nico from comment #4) > > The goal of this draft-patch is not to implement new features into grub, but > > only to be able to boot after a pool upgrade. > > What happens when grub encounters data id doesn't know how to properly deal > with? it produce an error "unknow id" and drop to a grub-rescue shell...
Let me put it this way: I'm happy to apply patches from upstream. I'm not going to apply the patch you attached to this bug report.
Created attachment 413742 [details, diff] Adds support of com.delphix:hole_birth, com.delphix:extensible_dataset, com.delphix:embedded_data and org.open-zfs:large_blocks ZFS features to Grub This is just fixed patch from https://github.com/zfsonlinux/grub/blob/snapshot/debian/wheezy/2.02-beta2.9-ZOL10-7aa9f6-wheezy/debian/patches/zfs.patch . Full ebuild is available at https://github.com/hac0demon/hac0verlay/tree/master/sys-boot/grub .
@Svyatoslav Ivashkevich - Thank you very much for posting your patch! Just through an additional epatch line into sys-boot/grub-2.02_beta2-r9 (rev'd to r10 in a local repository) and it worked just fine. Had me scratching my head for the last couple days -- didn't think about the zpool upgrade that I did earlier in the day prior to a reboot. Thanks! Ryan