Skip to content

Commit

Permalink
nixos: network-interfaces-scripted: don't require mstpd when rstp is off
Browse files Browse the repository at this point in the history
(cherry picked from commit 55996b8)
  • Loading branch information
oxij authored and grahamc committed Mar 7, 2017
1 parent f518d5e commit 586e959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/tasks/network-interfaces-scripted.nix
Expand Up @@ -220,7 +220,7 @@ let
wantedBy = [ "network-setup.service" (subsystemDevice n) ];
bindsTo = deps ++ optional v.rstp "mstpd.service";
partOf = [ "network-setup.service" ] ++ optional v.rstp "mstpd.service";
after = [ "network-pre.target" "mstpd.service" ] ++ deps
after = [ "network-pre.target" ] ++ deps ++ optional v.rstp "mstpd.service"
++ concatMap (i: [ "network-addresses-${i}.service" "network-link-${i}.service" ]) v.interfaces;
before = [ "network-setup.service" (subsystemDevice n) ];
serviceConfig.Type = "oneshot";
Expand Down

0 comments on commit 586e959

Please sign in to comment.