mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
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:
parent
ddc809d6da
commit
c2f35087d2
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue