Comment 42 for bug 1636912

Revision history for this message
Ryan Harper (raharper) wrote :

I built a new UC16 image with the systemd proposed package. Initially networkd running early is fine. However, under closer inspection, in a networkd-only image, DNS (resolvconf) was not running early enough to allow DNS service to be available at the time that cloud-init.service runs (which may look up resources via hostnames).

After some discussion, the following change is also needed in resolvconf to ensure that in a networkd-based image, that we get DNS early along with networkd early.

% diff -u resolvconf.service.orig resolvconf.service
--- resolvconf.service.orig 2016-12-06 04:58:43.202698062 -0600
+++ resolvconf.service 2016-12-06 04:58:50.367042811 -0600
@@ -3,6 +3,7 @@
 Documentation=man:resolvconf(8)
 DefaultDependencies=no
 Before=networking.service
+Before=systemd-networkd.service

 [Service]
 RemainAfterExit=yes