nixpkgs/test/boot-stage-1.nix
Eelco Dolstra 1aa35c8267 * Instead of adding all of util-linux to the initd, add just mount
(and nuke its references so that we don't get glibc etc.).  The
  initrd is now 3.2 MB (and that includes the entire staticTools from
  the stdenv bootstrap, most of which we don't actually need).

svn path=/nixu/trunk/; revision=6942
2006-11-03 13:35:02 +00:00

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