Conversation
Put the zfs, ztest, zdb and zpool binaries in ../bin so that they get patchelf'd by the initrd builder Move restartIfChanged attribute to where it is being heeded. Ignore failures in zfs mount, and zpool imports. Make zpool import wanted by the filesystem target, otherwise it might not happen.
Remove caching and compression on the zvol used for swap, in the event of a low memory condition, this means less chance of an expensive RMW .
There was a problem hiding this comment.
This should probably be wrapped down to 72 columns.
|
I don't have anything to say regarding the tests, not being sufficiently familiar with NixOS, but on the ISO distribution issue, there's this from the ZOL FAQ (emphasis mine):
Seeing as you'd only be distributing it as a separate binary module, it looks like it shouldn't be an issue. On another note, I've been using this set of commits on one of my systems to enable a ZFS root, and it has worked well for me thus far :). |
|
I think all I really need to do is issue the correct variant of @Shados; if you're feeling adventurous, you could try setting up bootable zfs. It was more grub than I could stomach.. |
|
Well, what is the status of this ancient PR? |
|
I will close this PR, port the tests, and open a new PR. |
This is a work in process. This isn't intended for merging quite yet..
This patchset adds support, documentation, and tests for installing NixOS to a ZFS partition. Booting off of ZFS is probably possible with a sufficient of grub-fu, but currently only separate boot/root is tested.
There is also a new test for running the zfs unit tests.
Dodgy bits: