a94dd5c8b1
`modules-closure.nix' produces a module tree in $out/lib/modules/VERSION that contains only the modules identified by `rootModules', plus their dependencies. It also generates an appropriate modules.dep. This is useful for initrds, as we obviously don't want a copy of the entire kernel module tree in the initial RAM disk. svn path=/nixu/trunk/; revision=6939
22 lines
632 B
Nix
22 lines
632 B
Nix
# This Nix expression builds the script that performs the first stage
|
|
# of booting the system: it loads the modules necessary to mount the
|
|
# root file system, then calls /init in the root file system to start
|
|
# the second boot stage. The closure of the result of this expression
|
|
# is supposed to be put into an initial RAM disk (initrd).
|
|
|
|
{ genericSubstituter, shell, staticTools
|
|
, module_init_tools, utillinux, modules
|
|
}:
|
|
|
|
genericSubstituter {
|
|
src = ./boot-stage-1-init.sh;
|
|
isExecutable = true;
|
|
inherit shell modules;
|
|
path = [
|
|
staticTools
|
|
module_init_tools
|
|
# utillinux
|
|
];
|
|
makeDevices = ./make-devices.sh;
|
|
}
|