Nix Packages collection & NixOS
Go to file
Eelco Dolstra f19065c283 Fix broken systemd shutdown services
The services systemd-random-seed-save.service and
systemd-update-utmp-shutdown.service from systemd 203 don't work,
because they have a RequiresMountFor dependency on /var/lib and
/var/log.  Such a dependency produces a cycle, causing systemd to drop
those services:

  Fixing conflicting jobs by deleting job poweroff.target/stop
  Deleting job systemd-poweroff.service/stop as dependency of job poweroff.target/stop
  Deleting job umount.target/stop as dependency of job systemd-poweroff.service/stop
  Deleting job -.mount/start as dependency of job umount.target/stop
  Deleting job systemd-random-seed-save.service/start as dependency of job -.mount/start
  Deleting job systemd-update-utmp-shutdown.service/start as dependency of job -.mount/start

Dropping the RequiresMountFor doesn't work either, because then
/var/... may have meen unmounted or remounted read-only.

Upstream systemd fixes this by doing the actual work from an ExecStop
action in an already-running service than conflicts with
shutdown.target.  So I backported that here.  The main consequence is
that wtmp shutdown records now get written properly.

The main lesson: shutdown.target is useless for pulling in services
during shutdown if they need to write anywhere.
2013-09-22 21:39:05 +02:00
doc manual: fix typo, #254. 2013-09-18 10:26:40 +03:00
gui renaming all occurrences of /var/run/{booted,current}-system 2012-07-23 14:01:35 -04:00
lib Add kexec support 2013-09-16 17:42:13 +02:00
maintainers Update to use NixOps in stead on charon, use copy_image method for copying to other regions. 2013-06-05 18:12:20 +02:00
modules Fix broken systemd shutdown services 2013-09-22 21:39:05 +02:00
tests Write a reboot record to /var/log/wtmp 2013-09-22 21:39:05 +02:00
.gitignore Ignore .version-suffix file created by nixos-rebuild 2013-01-16 10:12:42 -05:00
.version Bump the NixOS version 2013-09-02 11:18:22 +02:00
COPYING * Add a license, finally :-) 2010-05-28 11:48:41 +00:00
default.nix Remove reference to non-existant config.tests 2013-09-03 15:14:55 +02:00
README * URL updates. 2008-05-09 15:08:43 +00:00
release-combined.nix Add vdi.i686-linux to the release-critical jobs 2013-08-26 14:11:56 +02:00
release.nix release.nix: Automatically include all of tests/default.nix 2013-09-16 13:30:33 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.