From: Fabrice Fontaine Date: Sun, 11 Apr 2021 19:46:02 +0000 (+0200) Subject: package/systemd: fix /etc/resolv.conf link on per-package build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=511fbda0be955910a7609b0f73dc166fd8073349;p=buildroot.git package/systemd: fix /etc/resolv.conf link on per-package build Fixes: - https://bugs.buildroot.org/show_bug.cgi?id=13271 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 41332f207a..74c561e67e 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -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