--- util/grub-install.in 2012-02-03 04:16:36.032265000 -0600 +++ util/grub-install.in 2012-02-03 05:35:50.362628000 -0600 @@ -469,7 +469,12 @@ grub_device="`"$grub_probe" --device-map="${device_map}" --target=device "${grubdir}"`" || exit 1 if ! test -f "${grubdir}"/grubenv; then - "$grub_editenv" "${grubdir}"/grubenv create + case "`"$grub_probe" --target=fs "${grubdir}"`" in + btrfs | cpiofs | newc | odc | romfs | squash4 | tarfs | zfs) + ;; + *) + "$grub_editenv" "${grubdir}"/grubenv create + esac fi # Create the core image. First, auto-detect the filesystem module. --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ ChangeLog.zfs-no-grubenv 2012-02-03 05:49:27.977376000 -0600 @@ -0,0 +1,5 @@ +2012-02-03 Richard Laager + + * util/grub-install.in: Don't create a grubenv file on filesystems + to which GRUB cannot write. +