diff options
author | Stefan Eichenberger <stefan.eichenberger@toradex.com> | 2025-04-15 11:55:35 +0200 |
---|---|---|
committer | Stefan Eichenberger <eichest@gmail.com> | 2025-04-15 11:56:31 +0200 |
commit | f113745861af0807ffdd5754cfb8d68cc7408eb9 (patch) | |
tree | 02371e2ce833116c3e1cabe8f2e4339d4401802c | |
parent | 0cedd24361330feb1f60a6be20f04c0c3ab10183 (diff) |
connman: Rely on systemd-resolved for DNS configuration
The commit 747c97936c77 ("connman: Remove Ethernet interface
management") transferred control of Ethernet interfaces to
systemd-networkd. This caused a regression where DNS resolution stopped
working, as ConnMan previously managed DNS settings based on information
received via those interfaces.
Configure ConnMan to delegate DNS handling to systemd-resolved. This
ensures that DNS servers obtained by systemd-networkd are correctly
utilized via systemd-resolved, restoring DNS functionality.
Related-to: ELB-6332
Fixes: 747c97936c77 ("connman: Remove Ethernet interface management")
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
-rw-r--r-- | recipes-connectivity/connman/connman_%.bbappend | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-connectivity/connman/connman_%.bbappend b/recipes-connectivity/connman/connman_%.bbappend index 683a0233..1a1f7b0a 100644 --- a/recipes-connectivity/connman/connman_%.bbappend +++ b/recipes-connectivity/connman/connman_%.bbappend @@ -5,6 +5,16 @@ SRC_URI:append = " \ file://0001-connman-clock-ntp-client-should-not-update-time-time.patch \ " +SRC_URI:remove = " \ + file://0001-connman.service-stop-systemd-resolved-when-we-use-co.patch \ +" + +EXTRA_OECONF:append = " \ + --with-dns-backend=systemd-resolved \ +" + +ALTERNATIVE_PRIORITY = "40" + do_install:append() { install -d ${D}${sysconfdir}/connman/ install -m 0644 ${S}/src/main.conf ${D}${sysconfdir}/connman/ |