]> code.ossystems Code Review - openembedded-core.git/commit
systemd: disable resolv.conf symlink unless resolved is enabled
authorPeter A. Bigot <pab@pabigot.com>
Thu, 18 Sep 2014 15:16:39 +0000 (10:16 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Sep 2014 11:11:47 +0000 (12:11 +0100)
commit7e2b05a6f59209687829225878a19a1dad8143b9
tree481620ab9e7033237438a1092a5678972a27d370
parent4b503f25f1ef8f554d3c76d88399db379dc818cc
systemd: disable resolv.conf symlink unless resolved is enabled

The tmpfiles configuration in systemd unconditionally creates a symlink
from /etc/resolv.conf to the location where systemd's resolved service
will place the real file.  This link is only appropriate when resolved
is enabled and running: its presence prevents connman or other systems
from providing a working resolv.conf when systemd is not assigned that
responsibility.  OE has not yet enabled systemd's networkd or resolved
by default.

There is a TODO in the systemd source to fix this, but it has not been
addressed upstream.  This patch comments out the corresponding line when
resolved is not enabled in the package configuration.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/systemd/systemd/0001-tmpfiles.d-etc.conf-disable-resolv.conf-symlink.patch [new file with mode: 0644]
meta/recipes-core/systemd/systemd_216.bb