On 03.02.2012 11:07, Richard Laager wrote:
On Fri, 2012-02-03 at 11:05 +0100, Vladimir 'φ-coder/phcoder' Serbinenko
wrote:
On 02.02.2012 12:16, Richard Laager wrote:
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.
This isn't specific to ZFS. BtrFS, squash4, all variants of cpio, tar
and romfs are affected by the same problem. Could you expand your patch
to handle those?
I suspect that handling them by name is not the best way to do this. How
can I tell if a filesystem doesn't support writing?
I think it's the best way. One could use grub-fstest blocklist but it
has other problems. While btrfs and zfs don't hook blocklist on purpose
(COW and, more importantly, checksums), others are just almost never
sector-aligned or are compressed.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel