nixpkgs/test/boot-stage-1.nix
Eelco Dolstra 2d31e1b6d6 * A minimal boot script for stage 1 of the boot (loading kernel
modules).  The closure of the boot script is all we need in the
  initrd.

svn path=/nixu/trunk/; revision=6929
2006-11-02 22:48:01 +00:00

17 lines
510 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}:
genericSubstituter {
src = ./boot-stage-1-init.sh;
isExecutable = true;
inherit shell;
path = [
staticTools
];
}