mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
svn path=/nixos/branches/modular-nixos/; revision=16557
This commit is contained in:
parent
137ce0907c
commit
bc54061cba
2 changed files with 9 additions and 7 deletions
|
@ -58,11 +58,14 @@ let
|
|||
];
|
||||
|
||||
modprobe = fullDepEntry ''
|
||||
# Allow the kernel to find our wrapped modprobe (which searches in the
|
||||
# right location in the Nix store for kernel modules). We need this
|
||||
# when the kernel (or some module) auto-loads a module.
|
||||
# this should only happen at boot time, since we shouldn't
|
||||
# use modules that don't match the running kernel.
|
||||
# Allow the kernel to find our wrapped modprobe (which searches
|
||||
# in the right location in the Nix store for kernel modules).
|
||||
# We need this when the kernel (or some module) auto-loads a
|
||||
# module. This is only done at boot time to make sure that we
|
||||
# don't use modules that don't match the running kernel.
|
||||
# !!! We should check whether the new kernel modules are
|
||||
# compatible with the running kernel so that we can upgrade
|
||||
# kernel modules (e.g. the NVIDIA driver) in a running system.
|
||||
if [ "$(cat /proc/sys/kernel/modprobe)" = "/sbin/modprobe" ]; then
|
||||
echo ${config.system.sbin.modprobe}/sbin/modprobe > /proc/sys/kernel/modprobe
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue