nixpkgs/nixos/modules/system/boot
Andreas Rammhold 024a383d64
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.
2019-06-03 15:05:19 +02:00
..
loader Merge pull request #61036 from cdepillabout/nixos-memtest-loader 2019-05-20 21:42:40 -05:00
binfmt.nix nixos/binfmt: fixup 2019-05-10 22:53:14 -04:00
coredump.nix
emergency-mode.nix
grow-partition.nix
initrd-network.nix
initrd-ssh.nix
kernel.nix
kernel_config.nix
kexec.nix nixos/kexec: log what's happening 2019-04-29 22:43:16 +02:00
luksroot.nix nixos/luksroot: GPG Smartcard support for luks encrypted volumes 2019-05-12 20:05:10 +02:00
modprobe.nix
networkd.nix nixos/networkd: rename GatewayOnlink to GatewayOnLink 2019-06-03 15:05:17 +02:00
pbkdf2-sha512.c
plymouth.nix
resolved.nix FIx some malformed XML in option descriptions 2019-05-13 09:15:17 +02:00
shutdown.nix
stage-1-init.sh Merge pull request #49537 from mayflower/stage1-symlink-fix 2019-04-18 17:59:08 +02:00
stage-1.nix nixos/stage-1: "find-libs" shell script is for the host 2019-04-18 15:02:51 +02:00
stage-2-init.sh
stage-2.nix
systemd-lib.nix
systemd-nspawn.nix
systemd-unit-options.nix
systemd.nix nixos/systemd: migrate systemd-timesync state when required 2019-06-03 15:05:19 +02:00
timesyncd.nix nixos/systemd: migrate systemd-timesync state when required 2019-06-03 15:05:19 +02:00
tmp.nix