diff options
author | Arian van Putten <arian.vanputten@gmail.com> | 2024-03-12 18:24:53 +0100 |
---|---|---|
committer | Arian van Putten <arian.vanputten@gmail.com> | 2024-03-12 21:08:03 +0100 |
commit | 16526f454fe534a809b3a0e4713c7fa70accb812 (patch) | |
tree | dd09bae7472bb1e8616aa7cfb3e2828780327314 /nixos/modules | |
parent | 43683b205c587f11879d121223b10da7eda0d3d3 (diff) |
nixos/binfmt: fix race condition between systemd-tmpfiles and systemd-binfmt
We need to make sure systemd-tmpfiles-setup.service ran before we start systemd-binft.service. Otherwise it might fail to start due to non-existant files Fixes #295365
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/system/boot/binfmt.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/binfmt.nix b/nixos/modules/system/boot/binfmt.nix index 08e3dce708447..2242c9da62d08 100644 --- a/nixos/modules/system/boot/binfmt.nix +++ b/nixos/modules/system/boot/binfmt.nix @@ -331,6 +331,7 @@ in { "proc-sys-fs-binfmt_misc.mount" "systemd-binfmt.service" ]; + services.systemd-binfmt.after = [ "systemd-tmpfiles-setup.service" ]; services.systemd-binfmt.restartTriggers = [ (builtins.toJSON config.boot.binfmt.registrations) ]; }) ]; |