I also removed connman as described. I’m getting an IP-address from the DHCP server. But the DNS is not set in resolv.conf.
When I use udhcpc from the commandline everything is working fine. Any idea why the DNS is not set when using systemd-networkd?
Looks like systemd-resolv exports the legacy resolv.conf file only in /run/systemd/resolve/resolv.conf.
If you want to use /etc/resolv.conf created from systemd-resolv you would have to create a symlink to /run/systemd/resolve/resolv.conf.
To create it automatically you could create that ‘somewhere’ in OE during image build or you could execute something as the following on every boot or in a place run during first boot.