mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
nixos/docker: Include ZFS commands in PATH for ZFS storagedriver
When using the ZFS storagedriver in docker, it shells out for the ZFS commands. The path configuration for the systemd task does not include ZFS, so if the driver is set to ZFS, add ZFS utilities to the PATH. This will resolve https://github.com/NixOS/nixpkgs/issues/10127 [Bjørn: prefix commit message with "nixos/docker:", remove extra space before ';']
This commit is contained in:
parent
ded3dfbce6
commit
791b600aac
@ -129,7 +129,8 @@ in
|
|||||||
LimitNPROC = 1048576;
|
LimitNPROC = 1048576;
|
||||||
} // proxy_env;
|
} // proxy_env;
|
||||||
|
|
||||||
path = [ pkgs.kmod ];
|
path = [ pkgs.kmod ] ++
|
||||||
|
(if cfg.storageDriver == "zfs" then [ pkgs.zfs ] else []);
|
||||||
environment.MODULE_DIR = "/run/current-system/kernel-modules/lib/modules";
|
environment.MODULE_DIR = "/run/current-system/kernel-modules/lib/modules";
|
||||||
|
|
||||||
postStart = cfg.postStart;
|
postStart = cfg.postStart;
|
||||||
|
Loading…
Reference in New Issue
Block a user