move resolv.conf.auto to /tmp/resolv.conf.d/
authorDaniel Golle <daniel@makrotopia.org>
Tue, 31 Dec 2019 23:27:38 +0000 (01:27 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 4 Jan 2020 14:18:58 +0000 (16:18 +0200)
Using /tmp/resolv.conf.d/ has the advantage that we can mount-bind it.
Mount-bind'ing /tmp/resolv.conf.auto directly previously caused
problems as the file is being deleted/replaced at run-time.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
netifd.h

index e565423ab774f862ea1de398d6ba56e0155ebf90..a4a146cabd6f0218dfb4663ee42198a38c6a0538 100644 (file)
--- a/netifd.h
+++ b/netifd.h
@@ -37,7 +37,7 @@
 #define DEFAULT_MAIN_PATH      "/lib/netifd"
 #define DEFAULT_CONFIG_PATH    NULL /* use the default set in libuci */
 #define DEFAULT_HOTPLUG_PATH   "/sbin/hotplug-call"
-#define DEFAULT_RESOLV_CONF    "/tmp/resolv.conf.auto"
+#define DEFAULT_RESOLV_CONF    "/tmp/resolv.conf.d/resolv.conf.auto"
 #endif
 
 extern const char *resolv_conf;