nixpkgs-suyu/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 Merge pull request #47665 from erikarvstedt/initrd-improvements 2019-01-06 21:48:26 -06:00
initrd-ssh.nix
kernel.nix nixos kernel.nix: add an option to customize the kernel RANDSTRUCT seed 2019-01-24 01:42:17 +01:00
kernel_config.nix linux: ability to merge structured configs 2019-01-28 09:06:33 +09:00
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 nixos: Add 'chroot' options to systemd.services 2019-03-14 19:14:01 +01:00
systemd-nspawn.nix nixos/systemd-nspawn: accept all Exec and Files options 2018-12-08 14:41:37 +01:00
systemd-unit-options.nix nixos/systemd: add StartLimitIntervalSec to unit config 2019-01-28 00:29:43 +00:00
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