Fix GRE tunnels restarted before udev service started
This patch adds explicit requirements for network addresses services to run after and only when udevd service is running. Also depend on virt netdev creation service instead of device Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
1b0cc6544e
commit
0e62d0a78a
@ -358,6 +358,15 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."network-addresses-${netifUSA}" = {
|
||||
after = pkgs.lib.mkOverride 1 [ "network-pre.target" "${netifUSA}-netdev.service" "systemd-udevd.service" ];
|
||||
requires = [ "systemd-udevd.service" ];
|
||||
};
|
||||
systemd.services."network-addresses-${netifAlt}" = {
|
||||
after = pkgs.lib.mkOverride 1 [ "network-pre.target" "${netifAlt}-netdev.service" "systemd-udevd.service" ];
|
||||
requires = [ "systemd-udevd.service" ];
|
||||
};
|
||||
|
||||
# https://kb.isc.org/docs/dnssec-key-and-signing-policy
|
||||
# chown named.named /etc/nixos/named
|
||||
services.bind = {
|
||||
|
Loading…
Reference in New Issue
Block a user