resolve: do not clear DNS servers or friends on link which is not managed by networkd
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 14 Nov 2021 06:46:47 +0000 (15:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 14 Nov 2021 23:17:34 +0000 (08:17 +0900)
commit26591ffffd62c62796b1f65146648022d68e1279
treea08b358f3f8d0dcb157f2fa10729962270d3af6c
parent51f6c93d215d66e9ca651659cc7be9e536aec994
resolve: do not clear DNS servers or friends on link which is not managed by networkd

When networkd detects an unmanaged link, then the state is changed in
the following order:
pending -> initialized -> unmanaged

The "initialized" state was added by bd08ce56156751d58584a44e766ef61340cdae2d.
src/resolve/resolved-link.c