diff options
| author | Andreas Stührk <andy@hammerhartes.de> | 2024-01-28 22:27:02 +0100 |
|---|---|---|
| committer | Andreas Stührk <andy@hammerhartes.de> | 2024-01-31 23:26:05 +0100 |
| commit | fc6c92faf36907f8d43034a3d5335aa41c571c84 (patch) | |
| tree | 683f41c056b97126e001ecb47f217c0e1908019f /pkgs/development/python-modules/rangehttpserver | |
| parent | 2148ac4b305df4253e7aea37832e28b559290537 (diff) | |
nixos/nftables: remove default systemd dependencies
With DefaultDependencies enabled, systemd adds "After=basic.target" to
service units. `basic.target` has a dependency on `sockets.target`, so
the `nftables` has (amongst others) the following order constraints:
* Before=network-pre.target
* After=sockets.target
Those constraints are often unsatisfiable. For example, `systemd-networkd`
has a dependency `After=network-pre.target`. When a socket unit now uses
`BindToDevice=` on a device managed by `networkd`, a timeout occurs
because `networkd` waits for `network-pre.target`, but
`network-pre.target` depends (through nftables) on `sockets.target`, but
the device to bind the socket to is never brought up, as this would
happen through `networkd`.
This is fixed by removing the implicit dependency on `basic.target`.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
