nixpkgs/test/boot-stage-1.nix
Eelco Dolstra 23381ed03f * Add the module tools, util-linux and the kernel modules to the
initrd.  Of course, the next step is to only add the kernel modules
  that we're going to need.

svn path=/nixu/trunk/; revision=6934
2006-11-03 00:36:08 +00:00

22 lines
629 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, kernel
}:
genericSubstituter {
src = ./boot-stage-1-init.sh;
isExecutable = true;
inherit shell kernel;
path = [
staticTools
module_init_tools
utillinux
];
makeDevices = ./make-devices.sh;
}