summary refs log tree commit diff
path: root/nixos/tests/all-tests.nix
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2019-05-15 11:05:37 +0200
committerAndreas Rammhold <andreas@rammhold.de>2019-06-03 15:05:19 +0200
commit024a383d64036dab02157927369ca680427aa61d (patch)
treee35e7d5d64a44082cb6a2104585f6bb863ff576a /nixos/tests/all-tests.nix
parentbc71b6eaf6ff9451cbbaa3e62aa200845d12f4e3 (diff)
downloadnixpkgs-024a383d64036dab02157927369ca680427aa61d.tar
nixpkgs-024a383d64036dab02157927369ca680427aa61d.tar.gz
nixpkgs-024a383d64036dab02157927369ca680427aa61d.tar.bz2
nixpkgs-024a383d64036dab02157927369ca680427aa61d.tar.lz
nixpkgs-024a383d64036dab02157927369ca680427aa61d.tar.xz
nixpkgs-024a383d64036dab02157927369ca680427aa61d.tar.zst
nixpkgs-024a383d64036dab02157927369ca680427aa61d.zip
nixos/systemd: migrate systemd-timesync state when required
Somewhen between systemd v239 and v242 upstream decided to no longer run
a few system services with `DyanmicUser=1` but failed to provide a
migration path for all the state those services left behind.

For the case of systemd-timesync the state has to be moved from
/var/lib/private/systemd/timesync to /var/lib/systemd/timesync if
/var/lib/systemd/timesync is currently a symlink.

We only do this if the stateVersion is still below 19.09 to avoid
starting to have an ever growing activation script for (then) ancient
systemd migrations that are no longer required.

See https://github.com/systemd/systemd/issues/12131 for details about
the missing migration path and related discussion.
Diffstat (limited to 'nixos/tests/all-tests.nix')
-rw-r--r--nixos/tests/all-tests.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 9bce49c9e30..ddc253adbd0 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -237,6 +237,7 @@ in
   syncthing-relay = handleTest ./syncthing-relay.nix {};
   systemd = handleTest ./systemd.nix {};
   systemd-confinement = handleTest ./systemd-confinement.nix {};
+  systemd-timesyncd = handleTest ./systemd-timesyncd.nix {};
   pdns-recursor = handleTest ./pdns-recursor.nix {};
   taskserver = handleTest ./taskserver.nix {};
   telegraf = handleTest ./telegraf.nix {};