strace'ing systemd-resolved showed that files under /run/systemd/netif/links/ are re-created as well when a RA comes in but their content never changes yet the stub-resolv.conf is created over and over:
root@lxd02:~# cat /run/systemd/netif/links/* /run/systemd/resolve/stub-resolv.conf | md5sum; stat -c "%i" /run/systemd/resolve/stub-resolv.conf 4cec911154fd89fd31b3e4c96894aad7 - 625 root@lxd02:~# cat /run/systemd/netif/links/* /run/systemd/resolve/stub-resolv.conf | md5sum; stat -c "%i" /run/systemd/resolve/stub-resolv.conf 4cec911154fd89fd31b3e4c96894aad7 - 624 root@lxd02:~# cat /run/systemd/netif/links/* /run/systemd/resolve/stub-resolv.conf | md5sum; stat -c "%i" /run/systemd/resolve/stub-resolv.conf 4cec911154fd89fd31b3e4c96894aad7 - 625 root@lxd02:~# cat /run/systemd/netif/links/* /run/systemd/resolve/stub-resolv.conf | md5sum; stat -c "%i" /run/systemd/resolve/stub-resolv.conf 4cec911154fd89fd31b3e4c96894aad7 - 625 root@lxd02:~# cat /run/systemd/netif/links/* /run/systemd/resolve/stub-resolv.conf | md5sum; stat -c "%i" /run/systemd/resolve/stub-resolv.conf 4cec911154fd89fd31b3e4c96894aad7 - 624 root@lxd02:~# cat /run/systemd/netif/links/* /run/systemd/resolve/stub-resolv.conf | md5sum; stat -c "%i" /run/systemd/resolve/stub-resolv.conf 4cec911154fd89fd31b3e4c96894aad7 - 625
strace'ing systemd-resolved showed that files under /run/systemd/ netif/links/ are re-created as well when a RA comes in but their content never changes yet the stub-resolv.conf is created over and over:
root@lxd02:~# cat /run/systemd/ netif/links/ * /run/systemd/ resolve/ stub-resolv. conf | md5sum; stat -c "%i" /run/systemd/ resolve/ stub-resolv. conf d31b3e4c96894aa d7 - netif/links/ * /run/systemd/ resolve/ stub-resolv. conf | md5sum; stat -c "%i" /run/systemd/ resolve/ stub-resolv. conf d31b3e4c96894aa d7 - netif/links/ * /run/systemd/ resolve/ stub-resolv. conf | md5sum; stat -c "%i" /run/systemd/ resolve/ stub-resolv. conf d31b3e4c96894aa d7 - netif/links/ * /run/systemd/ resolve/ stub-resolv. conf | md5sum; stat -c "%i" /run/systemd/ resolve/ stub-resolv. conf d31b3e4c96894aa d7 - netif/links/ * /run/systemd/ resolve/ stub-resolv. conf | md5sum; stat -c "%i" /run/systemd/ resolve/ stub-resolv. conf d31b3e4c96894aa d7 - netif/links/ * /run/systemd/ resolve/ stub-resolv. conf | md5sum; stat -c "%i" /run/systemd/ resolve/ stub-resolv. conf d31b3e4c96894aa d7 -
4cec911154fd89f
625
root@lxd02:~# cat /run/systemd/
4cec911154fd89f
624
root@lxd02:~# cat /run/systemd/
4cec911154fd89f
625
root@lxd02:~# cat /run/systemd/
4cec911154fd89f
625
root@lxd02:~# cat /run/systemd/
4cec911154fd89f
624
root@lxd02:~# cat /run/systemd/
4cec911154fd89f
625