* portmap: add a postStart action that ensures that portmap is
  actually listening.  Otherwise we have a race condition during boot
  where statd's start can be delayed, causing NFSv3 mounting to fail.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33171 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Fix the NFS Upstart dependencies.  Mountd is now started before
  nfsd, as suggested by the nfs-utils README.

  Also, rather than relying on Upstart events (which have all sorts of
  problems, especially if you have jobs that have multiple
  dependencies), we know just let jobs start their on prerequisites.
  That is, nfsd starts mountd in its preStart script; mountd starts
  statd; statd starts portmap.  Likewise, mountall starts statd to
  ensure that it can mount NFS filesystems.  This means that doing
  something like "start nfsd" from the command line will Do The Right
  Thing and start the dependencies of nfsd.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33172 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Forgot to commit.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33173 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Renamed services.nfsKernel to services.nfs.  Unfortunately
  rename.nix doesn't allow renaming sets of options...
* Renamed nfs-kernel.nix to nfsd.nix
* Move NFS client stuff from nfsd.nix to filesystems/nfs.nix.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33174 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Upstart stupidly doesn't kill post-start scripts if we do "stop
  JOB", but it does kill the job's main process.  So if the post-start
  script if waiting for the job's main process to reach some state, it
  may hang forever.  Thus, the post-start script should monitor
  whether its job has been requested to stop and exit in that case.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33176 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Use boot.kernelModules everywhere instead of explicit calls to
  modprobe.
* Move the implementation of boot.kernelModules from the udev job to
  the activation script.  This prevents races with the udev job.
* Drop references to the "capability" kernel module, which no longer
  exists.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33208 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Revert unintended commit.

git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33209 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Don't use the non-existent "never" condition in stopOn.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33212 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Fix comment.

git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33213 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Provide two utility functions in Upstart jobs: "ensure JOBNAME"
  starts the given job and waits until it's running; "stop_check"
  checks that the current job hasn't been asked to stop.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33214 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Improve some job names.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33215 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
Adding a module to get crash dumps using kexec.



git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33219 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* mountall: Don't start the emergency shell if the X server is
  running.  The user won't see it, and the "console owner" stanza
  breaks VT switching and causes the X server to go to 100% CPU time.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33221 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Improved Upstart job handling in switch-to-configuration.  It no
  longer compares the current configuration to the previous
  configuration, but instead compares the current Upstart state to the
  intended state.  Thus, if the switch script is interrupted, running
  nixos-rebuild again will resume starting/stopping Upstart jobs where
  the previous run left off.

  We determine if an Upstart job has changed by having the pre-start
  script of each Upstart job put a symlink to its .conf file in
  /var/run/upstart-jobs.  So if this symlink differs from the target
  of /etc/init/<job>.conf, then the job has changed.  This also
  prevents multiple restarts of dependent jobs.  E.g., if job B has
  "start on started A" and "stop on stopping A", then restarting A
  will cause B to be restarted, so B shouldn't B restarted a second
  time.

  We only start jobs that are not running if 1) they're tasks that
  have been previously run (like mountall); or 2) they're jobs that
  have a "start on" condition.  This seems a reasonable heuristic.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33222 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Allow Upstart jobs to declare that they shouldn't be restarted by
  switch-to-configuration.  E.g. the X server shouldn't be restarted
  because that kills all the X clients.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33223 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Ignore the "No soundcards found" error.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33224 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Use the --quiet flag.

git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33225 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
fixed intel microcode loading during boot

git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33226 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
Fixing the mkOverride for the kernelPackages in crashdump (I misunderstood
mkOverride in the prev commit).

Adding an option on kernelParams for the postcrash kernel.



git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33230 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
* Move the implementation of boot.kernelModules to udev's postStart.
  It needs udevd to be running because the modules may require
  firmware.  Thanks to Mathijs and Arie for pointing this out.


git-svn-id: https://nixos.org/repos/nix/nixos/trunk@33234 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb