* /etc/resolv.conf symlink
@ 2017-10-30 15:37 Anders Montonen
2017-10-30 15:54 ` Alexander Kanavin
0 siblings, 1 reply; 3+ messages in thread
From: Anders Montonen @ 2017-10-30 15:37 UTC (permalink / raw)
To: yocto
Hi,
I'm hoping someone could clarify how the symlink generation from
/etc/resolv.conf to systemd's runtime /run/systemd/resolve/resolv.conf is
supposed to work when resolved is not enabled.
In the systemd do_install(), a directive for generating this symlink is
inserted into /usr/lib/tmpfiles.d/etc.conf:
if ! ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'true', 'false', d)}; then
echo 'L! ${sysconfdir}/resolv.conf - - - - ../run/systemd/resolve/resolv.conf' >>${D}${exec_prefix}/lib/tmpfiles.d/etc.conf
However, systemd also pulls in volatile-binds, which installs an override
for etc.conf pointing to /dev/null, thereby preventing this link from
being created:
# Suppress attempts to process some tmpfiles that are not temporary.
#
install -d ${D}${sysconfdir}/tmpfiles.d ${D}/var/cache
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/etc.conf
ln -s /dev/null ${D}${sysconfdir}/tmpfiles.d/home.conf
Have I understood this correctly, and is this supposed to work?
Regards,
Anders
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: /etc/resolv.conf symlink
2017-10-30 15:37 /etc/resolv.conf symlink Anders Montonen
@ 2017-10-30 15:54 ` Alexander Kanavin
2017-10-30 16:03 ` Marc Ferland
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2017-10-30 15:54 UTC (permalink / raw)
To: Anders Montonen, yocto
On 10/30/2017 05:37 PM, Anders Montonen wrote:
> I'm hoping someone could clarify how the symlink generation from
> /etc/resolv.conf to systemd's runtime /run/systemd/resolve/resolv.conf
> is supposed to work when resolved is not enabled.
I think we have a bug for it:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11969
Please comment, propose patches etc.
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: /etc/resolv.conf symlink
2017-10-30 15:54 ` Alexander Kanavin
@ 2017-10-30 16:03 ` Marc Ferland
0 siblings, 0 replies; 3+ messages in thread
From: Marc Ferland @ 2017-10-30 16:03 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 893 bytes --]
FWIW,
I'm using pyro and had to cherry-pick:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=00e4662e55f66570cae29240c22b4d74b79d3ca5
To make systemd-resolved and systemd-networkd work as expected.
Marc
On Mon, Oct 30, 2017 at 11:54 AM, Alexander Kanavin <
alexander.kanavin@linux.intel.com> wrote:
> On 10/30/2017 05:37 PM, Anders Montonen wrote:
>
>> I'm hoping someone could clarify how the symlink generation from
>> /etc/resolv.conf to systemd's runtime /run/systemd/resolve/resolv.conf
>> is supposed to work when resolved is not enabled.
>>
>
> I think we have a bug for it:
>
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=11969
>
> Please comment, propose patches etc.
>
> Alex
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
[-- Attachment #2: Type: text/html, Size: 1877 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-30 16:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-30 15:37 /etc/resolv.conf symlink Anders Montonen
2017-10-30 15:54 ` Alexander Kanavin
2017-10-30 16:03 ` Marc Ferland
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.