zfs support in grub2-2.02~beta2

Asked by RJVB on 2014-05-19

I would like to transfer my (Kubuntu, 14.04) install to a ZFS root partition but the grub version currently provided with [K]Ubuntu 14.04 doesn't seem to support this. In fact, when I mount a pool and run grub-probe on it, I get an error message like this:

> grub-probe /Volumes/rpool
grub-probe: error: failed to get canonical path of `/dev/ata-WDC_WD3200BPVT-22JJ5T0_WD-WX81AA1M9437-part6'.
Exit 1

which is correct in the sense that the canonical path can be found at /dev/disk/by-id/ata-WDC_WD3200BPVT-22JJ5T0_WD-WX81AA1M9437-part6 . In other words, the algorithm used to obtain the path to the pool's device file (or one of its device files) should prepend the string stored in the pool with /dev/disk/by-id and not simply with /dev .

I've obtained the build tree with apt-get source grub2, but even though the libzfs dependency is installed and found by configure, the build process currently fails while linking grub-ofpathname because -lzfs is missing from the link command.

This leads me to wonder if the grub2 binary packages available have zfs support built in or not?

Question information

English Edit question
Ubuntu grub2 Edit question
No assignee Edit question
Solved by:
Sam Van den Eynde
Last query:
Last reply:
Best Sam Van den Eynde (samvde) said : #1


I think you just need to create the missing link. You can use udev to automate the process. See https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-install-Ubuntu-14.04-or-Later-to-a-Native-ZFS-Root-Filesystem for instructions (Step 2).

RJVB (rjvbertin) said : #2

Sees like this indeed shoul solve the issue. I'll keep using the grub version from theZoL for Debian repo, though (packages held in apt).