Add ZFS dependencies to the initrd so that the zpool command works.

Remove unneeded zfs mount, since zpool automatically mounts everything.

Close #1128.
This commit is contained in:
William A. Kennington III 2013-10-27 04:17:23 -05:00 committed by Evgeny Egorochkin
parent ddc809d6da
commit c2f35087d2

View File

@ -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
'';
};