mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
acf656125c
* Clear the PATH in most scripts. This helps to ensure purity. svn path=/nixos/trunk/; revision=7299
29 lines
522 B
Nix
29 lines
522 B
Nix
{ substituteAll, coreutils
|
|
, 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
|
|
|
|
, # Path for Upstart jobs. Should be quite minimal.
|
|
upstartPath
|
|
}:
|
|
|
|
let
|
|
|
|
startPath = [
|
|
coreutils
|
|
utillinux
|
|
udev
|
|
upstart
|
|
];
|
|
|
|
in
|
|
|
|
substituteAll {
|
|
src = ./boot-stage-2-init.sh;
|
|
isExecutable = true;
|
|
inherit kernel upstart readOnlyRoot activateConfiguration upstartPath;
|
|
inherit startPath;
|
|
}
|