GRUB can't write to ZFS.  Creating a grubenv file leads to a misleading
"sparse file not allowed" error on boot.  The attached patch for
grub-install skips the creation of a grubenv file on ZFS.

-- 
Richard
--- grub2-1.99-orig/util/grub-install.in	2011-04-03 08:36:21.000000000 -0500
+++ grub2-1.99/util/grub-install.in	2012-01-10 00:21:52.159253000 -0600
@@ -460,7 +460,9 @@
 grub_device="`"$grub_probe" --device-map="${device_map}" --target=device "${grubdir}"`" || exit 1
 
 if ! test -f "${grubdir}"/grubenv; then
-    "$grub_editenv" "${grubdir}"/grubenv create
+    if ! test "x`"$grub_probe" --target=fs "${grubdir}"`" = xzfs; then
+        "$grub_editenv" "${grubdir}"/grubenv create
+    fi
 fi
 
 # Create the core image. First, auto-detect the filesystem module.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to