nixpkgs/modules
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
..
config Add services.samba.nsswins option 2013-09-07 15:09:44 +02:00
hardware Get firmware from lib/firmware 2013-09-04 14:22:52 +02:00
installer nixos-install: Fix copying from the CD 2013-09-16 13:30:34 +02:00
misc modules/misc/ids.nix: document the fact that the uid for tcpcryptd is hard-coded in the daemon 2013-09-17 11:22:48 +02:00
profiles Update all legacy-style modules 2013-09-04 13:05:09 +02:00
programs Log console logins in /var/log/wtmp 2013-09-22 21:39:05 +02:00
security Log console logins in /var/log/wtmp 2013-09-22 21:39:05 +02:00
services services.cgminer.enable: improve description 2013-09-22 16:44:00 +02:00
system Fix broken systemd shutdown services 2013-09-22 21:39:05 +02:00
tasks Fix service description 2013-09-22 21:39:05 +02:00
testing Work around "Input/output error" opening /dev/ttyS0 2013-07-16 15:04:32 +02:00
virtualisation types.list -> types.listOf 2013-09-04 15:12:07 +02:00
module-list.nix Add kexec support 2013-09-16 17:42:13 +02:00
rename.nix Update zip to zipAttrsWith since zip is obsolete. 2013-08-22 10:40:50 +03:00