9986bda673
at boot time into a separate script. This will allow us to change the configuration without rebooting (provided that the configuration doesn't have a different kernel, init, etc.). svn path=/nixos/trunk/; revision=7294
29 lines
511 B
Nix
29 lines
511 B
Nix
{ genericSubstituter, shell, coreutils, findutils
|
|
, gnugrep, utillinux, kernel, udev, upstart
|
|
, activateConfiguration
|
|
|
|
, # Whether the root device is root only. If so, we'll mount a
|
|
# ramdisk on /etc, /var and so on.
|
|
readOnlyRoot
|
|
}:
|
|
|
|
let
|
|
|
|
startPath = [
|
|
coreutils
|
|
findutils
|
|
gnugrep
|
|
utillinux
|
|
udev
|
|
upstart
|
|
];
|
|
|
|
in
|
|
|
|
genericSubstituter {
|
|
src = ./boot-stage-2-init.sh;
|
|
isExecutable = true;
|
|
inherit shell kernel upstart readOnlyRoot activateConfiguration;
|
|
inherit startPath;
|
|
}
|