Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671320 - sys-apps/systemd-239-r2 force-links /etc/resolv.conf to /run/systemd/resolve/resolv.conf
Summary: sys-apps/systemd-239-r2 force-links /etc/resolv.conf to /run/systemd/resolve/...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-17 07:32 UTC by gentoo
Modified: 2018-11-17 15:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2018-11-17 07:32:15 UTC
The line "L+! /etc/resolv.conf - - - - ../run/systemd/resolve/resolv.conf" in tmpfiles.d/etc.conf forces a symlink. This is especially annoying when not wanting to run systemd-resolved and masking it, making the symlinked file nonexistent. This could be hidden behind USE=resolvconf.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 sys-apps/systemd
2. systemctl mask systemd-resolved.service
3. systemctl reboot
Actual Results:  
DNS resolution fails because /etc/resolv.conf is linked to /run/systemd/resolve/resolv.conf. (which doesn't exist)

Expected Results:  
resolv.conf manager of choice takes over.
Comment 1 Mike Gilbert gentoo-dev 2018-11-17 15:44:11 UTC
On my system, the line in /usr/lib/tmpfiles.d/etc.conf looks like this:

> L! /etc/resolv.conf - - - - ../run/systemd/resolve/stub-resolv.conf

This is the same entry that appears in the systemd git repo.

https://github.com/systemd/systemd/blob/v239/tmpfiles.d/etc.conf.m4#L17

This only creates a resolv.conf symlink if no file or symlink exists already.