mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
* Updated some more jobs.
svn path=/nixos/branches/upstart-0.6/; revision=18219
This commit is contained in:
parent
3fcb7c2cb5
commit
676da4d87d
@ -125,7 +125,7 @@
|
||||
./system/boot/stage-1.nix
|
||||
./system/boot/stage-2.nix
|
||||
./system/etc/etc.nix
|
||||
./system/upstart-events/ctrl-alt-delete.nix
|
||||
./system/upstart-events/control-alt-delete.nix
|
||||
./system/upstart-events/halt.nix
|
||||
./system/upstart-events/maintenance-shell.nix
|
||||
./system/upstart/upstart.nix
|
||||
|
@ -3,10 +3,10 @@
|
||||
###### implementation
|
||||
|
||||
{
|
||||
jobs.ctrl_alt_delete =
|
||||
{ name = "ctrl-alt-delete";
|
||||
jobs.control_alt_delete =
|
||||
{ name = "control-alt-delete";
|
||||
|
||||
startOn = "ctrlaltdel";
|
||||
startOn = "control-alt-delete";
|
||||
|
||||
task = true;
|
||||
|
@ -59,9 +59,11 @@ in
|
||||
jobs.kbd =
|
||||
{ description = "Keyboard / console initialisation";
|
||||
|
||||
startOn = "udev";
|
||||
startOn = "started udev";
|
||||
|
||||
preStart = ''
|
||||
task = true;
|
||||
|
||||
script = ''
|
||||
export LANG=${defaultLocale}
|
||||
export LOCALE_ARCHIVE=/var/run/current-system/sw/lib/locale/locale-archive
|
||||
export PATH=${pkgs.gzip}/bin:$PATH # Needed by setfont
|
||||
|
@ -7,7 +7,7 @@
|
||||
config = {
|
||||
|
||||
jobs.lvm =
|
||||
{ startOn = " udev"; # !!! or on new-devices
|
||||
{ startOn = "started udev or new-devices";
|
||||
|
||||
script =
|
||||
''
|
||||
|
@ -13,7 +13,7 @@ in
|
||||
{
|
||||
|
||||
jobs.swraid =
|
||||
{ startOn = "udev"; # !!! or on "new-devices"
|
||||
{ startOn = "started udev or new-devices";
|
||||
|
||||
script =
|
||||
''
|
||||
@ -25,6 +25,8 @@ in
|
||||
|
||||
# Scan /proc/partitions for RAID devices.
|
||||
${mdadm}/sbin/mdadm --examine --brief --scan -c partitions > ${tempConf}
|
||||
|
||||
if ! test -s ${tempConf}; then exit 0; fi
|
||||
|
||||
# Activate each device found.
|
||||
${mdadm}/sbin/mdadm --assemble -c ${tempConf} --scan
|
||||
|
Loading…
Reference in New Issue
Block a user