package/systemd: fix /etc/resolv.conf link on per-package build
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 11 Apr 2021 19:46:02 +0000 (21:46 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 13 Apr 2021 19:11:48 +0000 (21:11 +0200)
Fixes:
 - https://bugs.buildroot.org/show_bug.cgi?id=13271

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/systemd/systemd.mk

index 41332f207adcc14372420ecb412a6bc6418d8a75..74c561e67ea194ee45958ee33870db6ab815ddc1 100644 (file)
@@ -523,8 +523,7 @@ endef
 
 SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
        SYSTEMD_INSTALL_INIT_HOOK \
-       SYSTEMD_INSTALL_MACHINEID_HOOK \
-       SYSTEMD_INSTALL_RESOLVCONF_HOOK
+       SYSTEMD_INSTALL_MACHINEID_HOOK
 
 define SYSTEMD_INSTALL_IMAGES_CMDS
        $(SYSTEMD_INSTALL_BOOT_FILES)
@@ -556,7 +555,9 @@ define SYSTEMD_INSTALL_NSSCONFIG_HOOK
                $(TARGET_DIR)/etc/nsswitch.conf
 endef
 
-SYSTEMD_TARGET_FINALIZE_HOOKS += SYSTEMD_INSTALL_NSSCONFIG_HOOK
+SYSTEMD_TARGET_FINALIZE_HOOKS += \
+       SYSTEMD_INSTALL_NSSCONFIG_HOOK \
+       SYSTEMD_INSTALL_RESOLVCONF_HOOK
 
 ifneq ($(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)),)
 # systemd provides multiple units to autospawn getty as neede