]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
systemd: Correct tmpfile.d file for resolv.conf
authorMingli Yu <mingli.yu@windriver.com>
Tue, 15 Apr 2025 03:50:16 +0000 (11:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 17 Apr 2025 09:22:52 +0000 (10:22 +0100)
The tmpfiles config for systemd-resolve has been split out [1],
so correct tmpfile.d file for resolv.conf in our recipe accordingly.

[ YOCTO # 15768]

[1] https://github.com/systemd/systemd/commit/b15f6eae421ad64773c0be934fd372d1ca230adb

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_257.5.bb

index 24aad11c0abf6e9a885dd6174d583c725eb5172b..bd57f1f5a5703b326c913b62ae69b4d403bee401 100644 (file)
@@ -360,7 +360,7 @@ do_install() {
                ln -s ../run/systemd/resolve/resolv.conf ${D}${sysconfdir}/resolv-conf.systemd
        else
                resolv_conf="${@bb.utils.contains('RESOLV_CONF', 'stub-resolv', 'run/systemd/resolve/stub-resolv.conf', 'run/systemd/resolve/resolv.conf', d)}"
-               sed -i -e "s%^L! /etc/resolv.conf.*$%L! /etc/resolv.conf - - - - ../${resolv_conf}%g" ${D}${exec_prefix}/lib/tmpfiles.d/etc.conf
+               sed -i -e "s%^L! /etc/resolv.conf.*$%L! /etc/resolv.conf - - - - ../${resolv_conf}%g" ${D}${exec_prefix}/lib/tmpfiles.d/systemd-resolve.conf
                ln -s ../${resolv_conf} ${D}${sysconfdir}/resolv-conf.systemd
        fi
        if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'false', 'true', d)}; then