]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
wait-online: handle varlink connection errors while waiting for DNS (#37283)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Apr 2025 16:55:04 +0000 (01:55 +0900)
committerGitHub <noreply@github.com>
Wed, 30 Apr 2025 16:55:04 +0000 (01:55 +0900)
Currently, if systemd-networkd-wait-online is started with --dns, and
systemd-resolved is not running, it will exit with an error right away.
Similarly, if systemd-resolved is restarted while waiting for DNS
configuration, systemd-networkd-wait-online will not attempt to
re-connect, and will potentially never see subsequent DNS
configurations.

Improve this by adding socket units for the systemd-resolved varlink
servers, and re-establish the connection in systemd-networkd-wait-online
when we receive `SD_VARLINK_ERROR_DISCONNECTED`.

1  2 
src/network/wait-online/manager.c

Simple merge