1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 10:00:56 +00:00
nixpkgs/nixos/modules
Franz Pletz 76a3c30471
network-interfaces service: fix bindsTo deps for masters
Previously, netdev units for network interfaces defined in the nixos
configurations would bindTo the systemd device unit of the interface if
not in a container.

In situations where you switch to a new nixos configration with changes
to network-setup.service (like nameservers) and have stacked interfaces
like vlans on a bond, it would fail to propagate restarts to the netdevs
correctly resulting with broken networking. The bond would be present
but no vlan interfaces rendering the machine unreachable.

My fear is that the udev events fail to propagate correctly while a systemd
transaction that is also restarting the triggered netdev service is running.
This commit changes this behaviour so netdev services bindTo other netdev
services if present and otherwise fall back to the previous behaviour.

We also noticed that stacked interfaces would sometimes seemingly be stopped
in the wrong order. For instance in the above example, the bond interface
would be deleted before the vlan interfaces resulting in the vlan interfaces
not being present when their service is being stopped. This would cause the
systemd transaction to fail and thus break networking. Their postStop hooks
are now allowed to fail as we have reached the desired state.
2017-02-13 01:57:25 +01:00
..
config Fix typo in pulseaudio.nix 2017-01-26 20:52:33 +01:00
hardware linuxPackages.nvidia_x11: refactor, build more from source 2017-02-08 16:57:46 +03:00
i18n/input-method nixos/ibus: fix custom panel example 2017-01-24 12:52:39 -06:00
installer sd-image-*: Copy all RPi firmware files 2017-02-11 12:23:16 +02:00
misc kdm: drop service 2017-02-11 13:55:09 -05:00
profiles nixos: update default cases from KDM/KDE4 to SDDM/KDE5 2017-02-09 21:52:00 -05:00
programs locate: build in correct dbpath 2017-01-26 12:57:03 +01:00
security grsecurity docs: some polish 2017-02-03 18:47:07 +01:00
services gitlab service: fix database creation 2017-02-13 00:57:22 +01:00
system nixos top-level: Add 'dtbs' symlink when kernel uses device trees 2017-02-12 15:47:49 +02:00
tasks network-interfaces service: fix bindsTo deps for masters 2017-02-13 01:57:25 +01:00
testing kdm: drop service 2017-02-11 13:55:09 -05:00
virtualisation ecs-agent module: remove debug print 2017-02-10 15:16:17 -05:00
module-list.nix nixos/geoip-updater: new service 2017-02-12 15:07:34 +01:00
rename.nix nfsd service: use upstream systemd units 2017-02-01 19:47:33 +03:00