[Nix-dev] Get depmod to Work

Eelco Dolstra e.dolstra at tudelft.nl
Fri Mar 18 19:13:14 CET 2011


Hi,

On 03/18/2011 06:43 PM, Shea Levy wrote:

> Currently, running `depmod` on a standard Nixos system will fail with:
>
> Could not open
> /nix/store/...-kernel-modules/lib/modules2.6.XX.XX/modules.dep.temp for
> writing: No such file or directory.

You're not supposed to run "depmod" outside of the builder of 
kernel-modules because it's impure (it ends up overwriting the depmod 
files generated by the builder).

Note that kernel-modules' builder does put a / at the end of $MODULE_DIR:

 
https://svn.nixos.org/repos/nix/nixpkgs/trunk/pkgs/os-specific/linux/module-init-tools/aggregator.nix

If you want to add additional modules to the kernel configuration, you 
should add them to the boot.extraModulePackages option and run 
"nixos-rebuild switch".

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list