All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Don't create grubenv on ZFS
@ 2012-02-02 11:16 Richard Laager
  2012-02-03 10:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2012-02-04 22:34 ` Jordan Uggla
  0 siblings, 2 replies; 7+ messages in thread
From: Richard Laager @ 2012-02-02 11:16 UTC (permalink / raw)
  To: grub-devel


[-- Attachment #1.1: Type: text/plain, Size: 214 bytes --]

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

[-- Attachment #1.2: zfs-no-grubenv.patch --]
[-- Type: text/x-patch, Size: 580 bytes --]

--- 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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-05  1:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-02 11:16 [PATCH] Don't create grubenv on ZFS Richard Laager
2012-02-03 10:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-03 10:07   ` Richard Laager
2012-02-03 10:22     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-03 11:59       ` Richard Laager
2012-02-04 22:34 ` Jordan Uggla
2012-02-05  1:26   ` Richard Laager

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.