[Bug 1321335] Re: Build failure when ZFS support is enabled
RJVB
1321335 at bugs.launchpad.net
Sun Jun 29 08:55:36 UTC 2014
Now that the bug is confirmed to affect multiple users, allow me to post
the work-around I found, in hopes it will help address the issue.
I have installed grub-pc, grub-pc-bin, grub-common, grub2-common version 2.01-22debian1+zfs3-0.6.3-2~wheezy and zfs-initramfs version 0.6.3-0.27~21b446~wheezy, all downloaded manually from the zfsonlinux debian repository, and marked as held (apt-mark hold grub-pc ...).
In addition, I added zfsforce=1 to GRUB_CMDLINE_LINUX in /etc/default/grub (I haven't checked if that's still required after the upgrade to zfs 0.6.3).
Finally, if one uses the root dataset (the one with the pool's name) for
the root filesystem instead of a child dataset, one has to remove the
trailing slash from the pool name after each update-grub. That's a
confirmed issue @ZoL, one for which I do not know if a decision has been
made yet.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1321335
Title:
Build failure when ZFS support is enabled
Status in “grub2” package in Ubuntu:
Confirmed
Bug description:
I downloaded the GRUB2 sources from Launchpad, version 2.02~beta2-9
for "Trusty", in order to understand why grub-probe would not deal
correctly with ZFS pools.
It turns out that even the original source, without the Ubuntu
patches, fails to build when libzfs is present (and/or --enable-zfs is
used) because the zfs libraries are missing from the grub-ofpathname
utility's link command.
Consequently, I think that the grub-probe error I reported in the
linked question is due to missing ZFS support in the binary GRUB2
packages distributed via Launchpad.
After correcting Makefile.util.def, everything builds OK and grub-
probe correctly reports that ZFS pools are of type zfs .
A patchfile for the correction is attached, and an upstream bug report
created (https://savannah.gnu.org/bugs/index.php?42392).
I'm currently building an updated set of Ubuntu/Debian packages; I'll
modify this ticket (or file a new one) if there are additional issues
booting off a ZFS root.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1321335/+subscriptions
More information about the foundations-bugs
mailing list