units: order networkd resolve hook After=network-pre.target
Without this, the socket is available well before systemd-networkd.service is able to start, because of its own After=network-pre.target ordering. Then, if resolved handles queries before network-pre.target, it will hang waiting for networkd to reply to hook queries. This is currently happening in the wild with cloud-init.
This commit is contained in:
committed by
Luca Boccassi
parent
d41555dd2c
commit
37adb410a2
@@ -12,6 +12,7 @@ Description=Network Management Resolve Hook Socket
|
||||
Documentation=man:systemd-networkd.service(8)
|
||||
ConditionCapability=CAP_NET_ADMIN
|
||||
DefaultDependencies=no
|
||||
After=network-pre.target
|
||||
Before=sockets.target shutdown.target
|
||||
Conflicts=shutdown.target
|
||||
|
||||
|
||||
Reference in New Issue
Block a user