resolved: create /etc/resolv.conf symlink at runtime v239-8
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Mar 2016 22:06:17 +0000 (17:06 -0500)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 29 Oct 2018 09:41:48 +0000 (10:41 +0100)
commite0f2dd42fb02aa5767d38714c95ac10fb683ad67
tree687347877baa37c616668583503d190f4aa98591
parent80d5f0e2057717e9e5588edcabac95b8c238795c
resolved: create /etc/resolv.conf symlink at runtime

If the symlink doesn't exists, and we are being started, let's
create it to provie name resolution.

If it exists, do nothing. In particular, if it is a broken symlink,
we cannot really know if the administator configured it to point to
a location used by some service that hasn't started yet, so we
don't touch it in that case either.

https://bugzilla.redhat.com/show_bug.cgi?id=1313085
src/resolve/resolved.c
tmpfiles.d/etc.conf.m4