2007-03-05 19:45:33 -05:00
|
|
|
{ substituteAll, writeText, coreutils
|
2006-12-10 17:29:44 -05:00
|
|
|
, utillinux, kernel, udev, upstart
|
2006-12-09 14:25:23 -05:00
|
|
|
, activateConfiguration
|
2006-11-13 06:41:27 -05:00
|
|
|
|
2008-01-24 11:56:09 -05:00
|
|
|
, # Whether the root device is read-only and should be made writable
|
|
|
|
# through a unionfs.
|
|
|
|
isLiveCD
|
2006-12-10 17:29:44 -05:00
|
|
|
|
|
|
|
, # Path for Upstart jobs. Should be quite minimal.
|
|
|
|
upstartPath
|
2007-03-05 19:45:33 -05:00
|
|
|
|
|
|
|
, # User-supplied command to be run just before Upstart is started.
|
|
|
|
bootLocal ? ""
|
2006-11-03 19:01:13 -05:00
|
|
|
}:
|
|
|
|
|
2006-12-10 19:52:36 -05:00
|
|
|
substituteAll {
|
|
|
|
src = ./boot-stage-2-init.sh;
|
|
|
|
isExecutable = true;
|
2008-01-24 11:56:09 -05:00
|
|
|
inherit kernel upstart isLiveCD activateConfiguration upstartPath;
|
2006-12-10 19:52:36 -05:00
|
|
|
path = [
|
2006-11-03 19:01:13 -05:00
|
|
|
coreutils
|
|
|
|
utillinux
|
2006-11-07 17:05:27 -05:00
|
|
|
udev
|
2006-11-19 13:16:29 -05:00
|
|
|
upstart
|
2006-11-03 19:01:13 -05:00
|
|
|
];
|
2007-05-24 10:50:17 -04:00
|
|
|
bootLocal = writeText "local-cmds" bootLocal;
|
2006-11-03 19:01:13 -05:00
|
|
|
}
|