Skip to content

Commit

Permalink
network-interfaces-scripted: don't add 'lo' as device dependency
Browse files Browse the repository at this point in the history
systemd does not create device units for loopback devices,
since they are not physical.
  • Loading branch information
Mic92 authored and fpletz committed Aug 30, 2017
1 parent 128cdef commit 5d4a54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/tasks/network-interfaces-scripted.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ let
(hasAttr dev cfg.vswitches) ||
(hasAttr dev cfg.wlanInterfaces)
then [ "${dev}-netdev.service" ]
else optional (dev != null && !config.boot.isContainer) (subsystemDevice dev);
else optional (dev != null && dev != "lo" && !config.boot.isContainer) (subsystemDevice dev);

networkLocalCommands = {
after = [ "network-setup.service" ];
Expand Down

0 comments on commit 5d4a54c

Please sign in to comment.