package/systemd: create /etc/resolv.conf only if resolved is selected
authorCarlos Santos <unixmania@gmail.com>
Sat, 26 Oct 2019 16:17:02 +0000 (13:17 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 26 Oct 2019 17:03:15 +0000 (19:03 +0200)
commit0e51737575bcfbe573c8fe156f1e4a5408aad0fa
tree04dae08998b888004e81adeada9061ea454e712c
parentf1cb8ca218aa0980efb88a472be719538c030260
package/systemd: create /etc/resolv.conf only if resolved is selected

Or else it becomes a dangling link to
/run/systemd/resolve/resolv.conf, which is never created. Even worst,
it also prevents NetworkManager from updating resolv.conf.

Fixes:
  https://bugs.busybox.net/show_bug.cgi?id=9881

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Reviewed-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/systemd/systemd.mk