--- 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.