2007-03-06 01:45:33 +01:00
|
|
|
{ substituteAll, writeText, coreutils
|
2006-12-10 23:29:44 +01:00
|
|
|
, utillinux, kernel, udev, upstart
|
2006-12-09 20:25:23 +01:00
|
|
|
, activateConfiguration
|
2006-11-13 12:41:27 +01:00
|
|
|
|
|
|
|
, # Whether the root device is root only. If so, we'll mount a
|
|
|
|
# ramdisk on /etc, /var and so on.
|
|
|
|
readOnlyRoot
|
2006-12-10 23:29:44 +01:00
|
|
|
|
|
|
|
, # Path for Upstart jobs. Should be quite minimal.
|
|
|
|
upstartPath
|
2007-03-06 01:45:33 +01:00
|
|
|
|
|
|
|
, # User-supplied command to be run just before Upstart is started.
|
|
|
|
bootLocal ? ""
|
2006-11-04 01:01:13 +01:00
|
|
|
}:
|
|
|
|
|
2006-12-11 01:52:36 +01:00
|
|
|
substituteAll {
|
|
|
|
src = ./boot-stage-2-init.sh;
|
|
|
|
isExecutable = true;
|
|
|
|
inherit kernel upstart readOnlyRoot activateConfiguration upstartPath;
|
|
|
|
path = [
|
2006-11-04 01:01:13 +01:00
|
|
|
coreutils
|
|
|
|
utillinux
|
2006-11-07 23:05:27 +01:00
|
|
|
udev
|
2006-11-19 19:16:29 +01:00
|
|
|
upstart
|
2006-11-04 01:01:13 +01:00
|
|
|
];
|
2007-05-24 16:50:17 +02:00
|
|
|
bootLocal = writeText "local-cmds" bootLocal;
|
2006-11-04 01:01:13 +01:00
|
|
|
}
|