Re: [yocto] /etc/resolv.conf symlink

2017-10-30 Thread Marc Ferland
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.kana...@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
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] /etc/resolv.conf symlink

2017-10-30 Thread Alexander Kanavin

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


[yocto] /etc/resolv.conf symlink

2017-10-30 Thread Anders Montonen

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
--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto