mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
nixos/docker: use wrapped modprobe
We need to use wrapped modprobe, so that it finds the right modules. Docker needs modprobe to load overlay kernel module for example. This fixes an an error starting docker if the booted system's kernel version is different from the /run/current-system profile's one.
This commit is contained in:
parent
bb1a9d3b60
commit
3850123f32
@ -95,7 +95,7 @@ in
|
|||||||
LimitNPROC = 1048576;
|
LimitNPROC = 1048576;
|
||||||
} // proxy_env;
|
} // proxy_env;
|
||||||
|
|
||||||
path = [ pkgs.kmod ] ++ (optional (cfg.storageDriver == "zfs") pkgs.zfs);
|
path = [ config.system.sbin.modprobe ] ++ (optional (cfg.storageDriver == "zfs") pkgs.zfs);
|
||||||
environment.MODULE_DIR = "/run/current-system/kernel-modules/lib/modules";
|
environment.MODULE_DIR = "/run/current-system/kernel-modules/lib/modules";
|
||||||
|
|
||||||
postStart = if cfg.socketActivation then "" else cfg.postStart;
|
postStart = if cfg.socketActivation then "" else cfg.postStart;
|
||||||
|
Loading…
Reference in New Issue
Block a user