Stop systemd-resolve from booting on our images
It seems with ubuntu-bionic, systemd-resolve boots by default. This is
then overwriting our /etc/resolv.conf file with its nameserver
address.
@@ -173,6 +173,11 @@ case "$DIB_INIT_SYSTEM" in
# nothing to do
;;
systemd)
+ # If systemd-resolved is installed, stop it from running. We want to use unbound
+ # to manage our DNS requests.
+ if $(systemctl -q is-enabled systemd-resolved.service); then
+ systemctl disable systemd-resolved.service
+ fi
systemctl enable unbound.service
;;
openrc)
