mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
67f3ee3b64
svn path=/nixu/trunk/; revision=6985
23 lines
662 B
Nix
23 lines
662 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
|
|
, cdromLabel ? ""
|
|
}:
|
|
|
|
genericSubstituter {
|
|
src = ./boot-stage-1-init.sh;
|
|
isExecutable = true;
|
|
inherit shell modules cdromLabel;
|
|
path = [
|
|
staticTools
|
|
module_init_tools
|
|
extraUtils
|
|
];
|
|
makeDevices = ./make-devices.sh;
|
|
}
|