Skip to contentSkip to conversation

package/systemd: install resolv.conf with systemd resolve instead of networkd

PATCH New James Hilliard 2 participants 2 messages Aug 11, 2019 – Oct 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/systemd: install resolv.conf with systemd resolve instead of networkd

---
 package/systemd/systemd.mk | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
package/systemd/systemd.mk +4 -4
index e8fd7967bd..bd0c9d43c8 100644
@@ -310,10 +310,6 @@ endif
 ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
 SYSTEMD_CONF_OPTS += -Dnetworkd=true
 SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - Network Manager
-define SYSTEMD_INSTALL_RESOLVCONF_HOOK
-	ln -sf ../run/systemd/resolve/resolv.conf \
-		$(TARGET_DIR)/etc/resolv.conf
-endef
 SYSTEMD_NETWORKD_DHCP_IFACE = $(call qstrip,$(BR2_SYSTEM_DHCP))
 ifneq ($(SYSTEMD_NETWORKD_DHCP_IFACE),)
 define SYSTEMD_INSTALL_NETWORK_CONFS
@@ -329,6 +325,10 @@ endif
 ifeq ($(BR2_PACKAGE_SYSTEMD_RESOLVED),y)
 SYSTEMD_CONF_OPTS += -Dresolve=true
 SYSTEMD_RESOLVED_USER = systemd-resolve -1 systemd-resolve -1 * - - - Network Name Resolution Manager
+define SYSTEMD_INSTALL_RESOLVCONF_HOOK
+	ln -sf ../run/systemd/resolve/resolv.conf \
+		$(TARGET_DIR)/etc/resolv.conf
+endef
 else
 SYSTEMD_CONF_OPTS += -Dresolve=false
 endif
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/systemd: install resolv.conf with systemd resolve instead of networkd

Hello James,

Quoted 3 lines · On Sun, 11 Aug 2019 13:36:48 -0600 James Hilliard <[email protected]>…

We forgot about your patch, and Carlos recently submitted a similar patch, which we merged in 0e51737575bcfbe573c8fe156f1e4a5408aad0fa.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com