From: Markus Volk Date: Fri, 29 Mar 2024 15:24:48 +0000 (+0100) Subject: systemd: disable mdns feature in resolved for zeroconf X-Git-Tag: yocto-5.2~3279 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8509edeafea8e62e1b9ffe76b33999447f739b20;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git systemd: disable mdns feature in resolved for zeroconf DISTRO_FEATURE zeroconf installs avahi. If additionally resolved mdns implementation is running they will fight each other: Mar 29 13:31:51 intel-corei7-64 avahi-daemon[752]: *** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. *** Mar 29 13:31:51 intel-corei7-64 avahi-daemon[752]: *** WARNING: Detected another IPv6 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. *** Signed-off-by: Markus Volk Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/systemd/systemd_255.4.bb b/meta/recipes-core/systemd/systemd_255.4.bb index b02e44d9c00..8a816c4bc1d 100644 --- a/meta/recipes-core/systemd/systemd_255.4.bb +++ b/meta/recipes-core/systemd/systemd_255.4.bb @@ -249,6 +249,7 @@ EXTRA_OEMESON += "-Dnobody-user=nobody \ -Dsystem-alloc-gid-min=101 \ -Dsystem-gid-max=999 \ -Dcreate-log-dirs=false \ + ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', '-Ddefault-mdns=no -Ddefault-llmnr=no', '', d)} \ " # Hardcode target binary paths to avoid using paths from sysroot or worse