2006-11-02 23:48:01 +01:00
|
|
|
# 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).
|
|
|
|
|
2006-11-03 01:36:08 +01:00
|
|
|
{ genericSubstituter, shell, staticTools
|
|
|
|
, module_init_tools, utillinux, kernel
|
|
|
|
}:
|
2006-11-02 23:48:01 +01:00
|
|
|
|
|
|
|
genericSubstituter {
|
|
|
|
src = ./boot-stage-1-init.sh;
|
|
|
|
isExecutable = true;
|
2006-11-03 01:36:08 +01:00
|
|
|
inherit shell kernel;
|
2006-11-02 23:48:01 +01:00
|
|
|
path = [
|
|
|
|
staticTools
|
2006-11-03 01:36:08 +01:00
|
|
|
module_init_tools
|
|
|
|
utillinux
|
2006-11-02 23:48:01 +01:00
|
|
|
];
|
2006-11-03 00:58:06 +01:00
|
|
|
makeDevices = ./make-devices.sh;
|
2006-11-02 23:48:01 +01:00
|
|
|
}
|