From c2f35087d22d1064cc260152777b6802ab272618 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Sun, 27 Oct 2013 04:17:23 -0500 Subject: [PATCH] Add ZFS dependencies to the initrd so that the zpool command works. Remove unneeded zfs mount, since zpool automatically mounts everything. Close #1128. --- nixos/modules/tasks/filesystems/zfs.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index c1955b146918..efd546f3baa0 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -55,11 +55,12 @@ in cp -v ${kernel.zfs}/sbin/zfs $out/bin cp -v ${kernel.zfs}/sbin/zdb $out/bin cp -v ${kernel.zfs}/sbin/zpool $out/bin + cp -pdv ${kernel.zfs}/lib/lib*.so* $out/lib + cp -pdv ${pkgs.zlib}/lib/lib*.so* $out/lib ''; postDeviceCommands = '' zpool import -f -a -d /dev - zfs mount -a ''; };