From bc5b78f993292d10df62792d41dbdf1568fe1793 Mon Sep 17 00:00:00 2001 From: WilliButz Date: Wed, 15 Jan 2025 15:34:42 +0100 Subject: [PATCH] nixos/systemd-tmpfiles: fix ordering of systemd-tmpfiles-setup-sysroot Prior to this change a service failure would occur when this tmpfiles service did not finish fast enough and receive a SIGTERM from systemd. Additionally, `initrd-nixos-activation` is already ordered with `After=initrd-switch-root.target`. --- nixos/modules/system/boot/systemd/tmpfiles.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd/tmpfiles.nix b/nixos/modules/system/boot/systemd/tmpfiles.nix index 10d58dc0c706e..5e35e63e96c11 100644 --- a/nixos/modules/system/boot/systemd/tmpfiles.nix +++ b/nixos/modules/system/boot/systemd/tmpfiles.nix @@ -322,7 +322,7 @@ in description = "Create Volatile Files and Directories in the Real Root"; after = [ "initrd-fs.target" ]; before = [ - "initrd-nixos-activation.service" + "initrd.target" "shutdown.target" "initrd-switch-root.target" ]; conflicts = [ "shutdown.target" "initrd-switch-root.target" ];