From aa655abdc7df2023ed312d216618dc308eca1fa4 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 16 Oct 2023 18:15:11 +0200 Subject: [PATCH] Fix #159: hacky generation of /etc/resolv.conf at boot To be able to run "resolvconf -u" at boot we need dnsmasq up and running and startup-config having been loaded successfully. (No point when we hare in fail secure mode.) If this bugs out it can be pinpointed by an empty /etc/resolv.conf Signed-off-by: Joachim Wiberg --- package/confd/confd.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/confd/confd.conf b/package/confd/confd.conf index d8b829fcd..7c52d1119 100644 --- a/package/confd/confd.conf +++ b/package/confd/confd.conf @@ -27,5 +27,6 @@ service name:netopeer log \ [12345789] netopeer2-server -F -t 60 \ -- NETCONF server -# XXX: This is a hack, talk to Joachim -task [12345789] resolvconf -u -- Update DNS configuration +# Create initial /etc/resolv.conf after successful bootstrap +task name:resolv :conf norestart if: \ + [S] resolvconf -u -- Update DNS configuration