All of lore.kernel.org
 help / color / mirror / Atom feed
* Missing /etc/resolv.conf
@ 2017-10-07  7:30 Paul D. DeRocco
  2017-10-16 14:06 ` Jan Remmet
  0 siblings, 1 reply; 2+ messages in thread
From: Paul D. DeRocco @ 2017-10-07  7:30 UTC (permalink / raw)
  To: yocto

(Yocto Pyro, using systemd configured with resolved, networkd, timedated,
timesyncd)

/etc/resolv.conf is supposed to be symlinked to
/run/systemd/resolve/resolv.conf, which gets updated with the DNS address
received from DHCP, but it's not. Looking through systemd_232.bb, I see
that do_install() uses sed to edit /usr/lib/tmpfiles.d/etc.conf to set up
this link. When I run the system, I see that etc.conf does indeed have
this edited line, but there is no /etc/resolv.conf.
systemd-tmpfiles-setup.service runs successfully. Isn't that what's
supposed to execute all the junk in /usr/lib/tmpfiles.d? All the
abovementioned servers are running.

Am I missing something?

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco@ix.netcom.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Missing /etc/resolv.conf
  2017-10-07  7:30 Missing /etc/resolv.conf Paul D. DeRocco
@ 2017-10-16 14:06 ` Jan Remmet
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Remmet @ 2017-10-16 14:06 UTC (permalink / raw)
  To: Paul D. DeRocco; +Cc: yocto

On Sat, Oct 07, 2017 at 12:30:10AM -0700, Paul D. DeRocco wrote:
> (Yocto Pyro, using systemd configured with resolved, networkd, timedated,
> timesyncd)
> 
> /etc/resolv.conf is supposed to be symlinked to
> /run/systemd/resolve/resolv.conf, which gets updated with the DNS address
> received from DHCP, but it's not. Looking through systemd_232.bb, I see
> that do_install() uses sed to edit /usr/lib/tmpfiles.d/etc.conf to set up
> this link. When I run the system, I see that etc.conf does indeed have

I'm missing it too. systemd RDEPENDS on volatile-binds which creates
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/etc.conf

so /usr/lib/tmpfiles.d/etc.conf is ignored. I'm not sure where the link
should be created.

Jan

> this edited line, but there is no /etc/resolv.conf.
> systemd-tmpfiles-setup.service runs successfully. Isn't that what's
> supposed to execute all the junk in /usr/lib/tmpfiles.d? All the
> abovementioned servers are running.
> 
> Am I missing something?
> 
> -- 
> 
> Ciao,               Paul D. DeRocco
> Paul                mailto:pderocco@ix.netcom.com
> 
> -- 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-16 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-07  7:30 Missing /etc/resolv.conf Paul D. DeRocco
2017-10-16 14:06 ` Jan Remmet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.