]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: drop Before=sockets.target from networkd resolve hook
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 May 2026 16:12:29 +0000 (01:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 May 2026 19:34:30 +0000 (04:34 +0900)
Otherwise, it introduces cyclic dependencies:
```
systemd[1]: sockets.target: Found ordering cycle:
    systemd-networkd-resolve-hook.socket/start after network-pre.target/start after
    iptables.service/start after basic.target/start after sockets.target/start -
    after systemd-networkd-resolve-hook.socket
systemd[1]: sockets.target: Job systemd-networkd-resolve-hook.socket/start deleted
    to break ordering cycle starting with sockets.target/start
```

Follow-up for 37adb410a2b62716b666dbf8359edf8a6546ff94.
Fixes #42353.

units/systemd-networkd-resolve-hook.socket

index 8a724bbc0c0d44054fd36b36b56c3aba8d0bc66d..07b596319b4b5b8a7148bb704095f31a5983dfc5 100644 (file)
@@ -13,7 +13,7 @@ Documentation=man:systemd-networkd.service(8)
 ConditionCapability=CAP_NET_ADMIN
 DefaultDependencies=no
 After=network-pre.target
-Before=sockets.target shutdown.target
+Before=shutdown.target
 Conflicts=shutdown.target
 
 [Socket]