NixOS/nixos — pull request #104 by jcumming (2013-02-27 19:33:17+00:00)
Title: automatically import zpools and mount zfs filesystems

This is a first attempt at some zfs automation.

`zpool-import.service` will attempt to import all of the (healthy) pools it finds from scanning `/dev`.
`zfs-mount.service` will mount all of the zfs filesystems.

The `zfs-mount.service` seems to be the right compromise between having to call `zfs mount` to mount a zfs filesystem (instead of just `mount`), and fitting in with the systemd `local-fs.target`

Tested in a initrd - luks setup with an ext4 `/`, and a zfs `/home`.