[systemd-devel] [PATCH] resolved: Move symlink creation from tmpfiles to daemon runtime

Colin Walters walters at verbum.org
Mon Jul 7 10:22:26 PDT 2014


On Mon, Jul 7, 2014, at 09:59 AM, Lennart Poettering wrote:

> Hmm? the line has no effect if the file already exists

It doesn't already exist; looks like the systemd %post is triggering a
tmpfiles run.

> or /etc is read-only. 

It isn't read only.

> What precisely causes anaconda to trip up?

https://git.fedorahosted.org/cgit/anaconda.git/tree/pyanaconda/network.py#n1036
is one case.

There are several other image-building tools like lorax and
livecd-creator which also expect either ENOENT, or a writable
resolv.conf and not a symlink to an unmounted /run path.

>  This really feels
> like something to fix in anaconda, where it should remove the existing
> file if there is one.

See thread from
https://lists.fedorahosted.org/pipermail/anaconda-patches/2014-July/011933.html


More information about the systemd-devel mailing list