Unverified Commit f73402c7 authored by Marcel's avatar Marcel
Browse files

nixos/ifstate: remove manual /var/run creation

The directory seems to be created by other processes using recent
changes in master now. Therefore the manual mkdir is not needed anymore.

As per the removed code comment, this will probably also be fixed later
in pyroute2 directly.
parent b599843b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -291,9 +291,6 @@ in
              # Otherwise systemd starts ifstate again, after the encryption password was entered by the user
              # and we are able to implement the cleanup using ExecStop rather than a separate unit.
              RemainAfterExit = true;
              # When using network namespaces pyroute2 expects this directory to exists.
              # @liske is currently investigating whether this should be considered a bug in pyroute2.
              ExecStartPre = "${lib.getExe' pkgs.coreutils "mkdir"} /var/run";
              ExecStart = "${lib.getExe initrdCfg.package} --config ${
                config.environment.etc."ifstate/ifstate.initrd.yaml".source
              } apply";