git.iko.soy/typeable/nixpkgs
on master help sign in
systemd: enable upstream systemd-binfmt.service

Since we don't restart sysinit.service in switch-to-configuration, this additionally overrides systemd-binfmt.service to depend on proc-sys-fs-binfmt_misc.automount, which is normally provided by sysinit.service.

commit1904ef7f09bac1ed9a4fc17ee4c6e94d9c4dc981 authorNathan Zadoks <nathan@nathan7.eu> dateMon 21 Dec 2015, 12:09 (11 years ago) parent397a0db
1 file changed+2
nixos/modules/system/boot/systemd.nix+2
nixos/modules/system/boot/systemd.nix+2
@@ -160,6 +160,7 @@ let
160160 "systemd-timedated.service"
161161 "systemd-localed.service"
162162 "systemd-hostnamed.service"
163+ "systemd-binfmt.service"
163164 ]
164165
165166 ++ cfg.additionalUpstreamSystemUnits;
@@ -779,6 +780,7 @@ in
779780 systemd.services.systemd-user-sessions.restartIfChanged = false; # Restart kills all active sessions.
780781 systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
781782 systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
783+ systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.automount" ];
782784
783785 # Don't bother with certain units in containers.
784786 systemd.services.systemd-remount-fs.unitConfig.ConditionVirtualization = "!container";