This is a bug in systemd-networkd-resolvconf-update.service, apparently /run/systemd/netif/state does not always get the received DNS servers. This does not affect yakkety any more as this hackish thing is gone entirely and replaced by resolved.
But it is still relevant for xenial which snappy is based on, so we need to SRU it there.
Quick fix for snappy image builds until this is SRUed:
sed '/^ExecStart=/ s!netif/state!& /run/systemd/netif/leases/* | sort -u!' /lib/systemd/system/systemd-networkd-resolvconf-update.service
This is a bug in systemd- networkd- resolvconf- update. service, apparently /run/systemd/ netif/state does not always get the received DNS servers. This does not affect yakkety any more as this hackish thing is gone entirely and replaced by resolved.
But it is still relevant for xenial which snappy is based on, so we need to SRU it there.
Quick fix for snappy image builds until this is SRUed:
sed '/^ExecStart=/ s!netif/state!& /run/systemd/ netif/leases/ * | sort -u!' /lib/systemd/ system/ systemd- networkd- resolvconf- update. service