* Setting a a fixed resolv.conf file in OE built image
@ 2014-12-16 15:12 Philip Balister
2014-12-16 16:40 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Philip Balister @ 2014-12-16 15:12 UTC (permalink / raw)
To: openembedded-core
Any tips on how to do this the right way? It seems like fixed
resolv.conf's are no longer fashionable and the volatile.cache script
goes to great lengths to reset it.
Adding a dns-nameserver entry in the interfaces file never makes it to
resolv.conf. I tried installing the resolvconf package and played with
it, but no joy. This package also appears to have some issues with
missing pieces.
I'll file bugs, but until I can figure out how it is suposed to work,
any bug I file is going to be pretty vague.
This really should be easier.
Philip
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Setting a a fixed resolv.conf file in OE built image
2014-12-16 15:12 Setting a a fixed resolv.conf file in OE built image Philip Balister
@ 2014-12-16 16:40 ` Khem Raj
2014-12-16 16:55 ` Philip Balister
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2014-12-16 16:40 UTC (permalink / raw)
To: Philip Balister; +Cc: openembedded-core
> On Dec 16, 2014, at 7:12 AM, Philip Balister <philip@balister.org> wrote:
>
> Any tips on how to do this the right way? It seems like fixed
> resolv.conf's are no longer fashionable and the volatile.cache script
> goes to great lengths to reset it.
>
> Adding a dns-nameserver entry in the interfaces file never makes it to
> resolv.conf. I tried installing the resolvconf package and played with
> it, but no joy. This package also appears to have some issues with
> missing pieces.
depends a lot on what package combination you are using. If its systemd and you
are using systemd-resolved then it generates resolve.conf in /run/ and symlink
in /etc/ gets the job done. if its udhcpc then it will populate the one in /etc
and it will take interfaces file in /etc into consideration
>
> I'll file bugs, but until I can figure out how it is suposed to work,
> any bug I file is going to be pretty vague.
>
> This really should be easier.
>
> Philip
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Setting a a fixed resolv.conf file in OE built image
2014-12-16 16:40 ` Khem Raj
@ 2014-12-16 16:55 ` Philip Balister
2014-12-16 17:06 ` Saul Wold
0 siblings, 1 reply; 5+ messages in thread
From: Philip Balister @ 2014-12-16 16:55 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On 12/16/2014 11:40 AM, Khem Raj wrote:
>
>> On Dec 16, 2014, at 7:12 AM, Philip Balister <philip@balister.org> wrote:
>>
>> Any tips on how to do this the right way? It seems like fixed
>> resolv.conf's are no longer fashionable and the volatile.cache script
>> goes to great lengths to reset it.
>>
>> Adding a dns-nameserver entry in the interfaces file never makes it to
>> resolv.conf. I tried installing the resolvconf package and played with
>> it, but no joy. This package also appears to have some issues with
>> missing pieces.
>
> depends a lot on what package combination you are using. If its systemd and you
> are using systemd-resolved then it generates resolve.conf in /run/ and symlink
> in /etc/ gets the job done. if its udhcpc then it will populate the one in /etc
> and it will take interfaces file in /etc into consideration
Yeah, but this is an image built by adding packages to core-image. No
systemd or other network managers. It feels like just adding the
dns-nameserver line to interfaces should work, but something appears to
not re-populate resolv.conf after it is wiped at boot.
Philip
>
>>
>> I'll file bugs, but until I can figure out how it is suposed to work,
>> any bug I file is going to be pretty vague.
>>
>> This really should be easier.
>>
>> Philip
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Setting a a fixed resolv.conf file in OE built image
2014-12-16 16:55 ` Philip Balister
@ 2014-12-16 17:06 ` Saul Wold
2014-12-17 0:54 ` Philip Balister
0 siblings, 1 reply; 5+ messages in thread
From: Saul Wold @ 2014-12-16 17:06 UTC (permalink / raw)
To: Philip Balister, Khem Raj; +Cc: openembedded-core
On 12/16/2014 08:55 AM, Philip Balister wrote:
> On 12/16/2014 11:40 AM, Khem Raj wrote:
>>
>>> On Dec 16, 2014, at 7:12 AM, Philip Balister <philip@balister.org> wrote:
>>>
>>> Any tips on how to do this the right way? It seems like fixed
>>> resolv.conf's are no longer fashionable and the volatile.cache script
>>> goes to great lengths to reset it.
>>>
>>> Adding a dns-nameserver entry in the interfaces file never makes it to
>>> resolv.conf. I tried installing the resolvconf package and played with
>>> it, but no joy. This package also appears to have some issues with
>>> missing pieces.
>>
>> depends a lot on what package combination you are using. If its systemd and you
>> are using systemd-resolved then it generates resolve.conf in /run/ and symlink
>> in /etc/ gets the job done. if its udhcpc then it will populate the one in /etc
>> and it will take interfaces file in /etc into consideration
>
> Yeah, but this is an image built by adding packages to core-image. No
> systemd or other network managers. It feels like just adding the
> dns-nameserver line to interfaces should work, but something appears to
> not re-populate resolv.conf after it is wiped at boot.
>
I recently sent some patches to this area, dealing with all the dhcp
clients and resolvconf package.
Can you enumerate which networking tools you have installed, if you are
not using any network manager or dhcp client and relying on a static
dns-nameserver entry, you might need resolvconf if you are not using it.
Also which version of oe-core meta-data are you using?
Sau!
> Philip
>
>>
>>>
>>> I'll file bugs, but until I can figure out how it is suposed to work,
>>> any bug I file is going to be pretty vague.
>>>
>>> This really should be easier.
>>>
>>> Philip
>>> --
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>
>>
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Setting a a fixed resolv.conf file in OE built image
2014-12-16 17:06 ` Saul Wold
@ 2014-12-17 0:54 ` Philip Balister
0 siblings, 0 replies; 5+ messages in thread
From: Philip Balister @ 2014-12-17 0:54 UTC (permalink / raw)
To: Saul Wold, Khem Raj; +Cc: openembedded-core
On 12/16/2014 12:06 PM, Saul Wold wrote:
> On 12/16/2014 08:55 AM, Philip Balister wrote:
>> On 12/16/2014 11:40 AM, Khem Raj wrote:
>>>
>>>> On Dec 16, 2014, at 7:12 AM, Philip Balister <philip@balister.org>
>>>> wrote:
>>>>
>>>> Any tips on how to do this the right way? It seems like fixed
>>>> resolv.conf's are no longer fashionable and the volatile.cache script
>>>> goes to great lengths to reset it.
>>>>
>>>> Adding a dns-nameserver entry in the interfaces file never makes it to
>>>> resolv.conf. I tried installing the resolvconf package and played with
>>>> it, but no joy. This package also appears to have some issues with
>>>> missing pieces.
>>>
>>> depends a lot on what package combination you are using. If its
>>> systemd and you
>>> are using systemd-resolved then it generates resolve.conf in /run/
>>> and symlink
>>> in /etc/ gets the job done. if its udhcpc then it will populate the
>>> one in /etc
>>> and it will take interfaces file in /etc into consideration
>>
>> Yeah, but this is an image built by adding packages to core-image. No
>> systemd or other network managers. It feels like just adding the
>> dns-nameserver line to interfaces should work, but something appears to
>> not re-populate resolv.conf after it is wiped at boot.
>>
> I recently sent some patches to this area, dealing with all the dhcp
> clients and resolvconf package.
I did a test with core-image-minimal built for the zedboard and can
confirm that I know see the expected behavior. Setting dns-nameserver in
the interfaces file leads to a populated resolv.conf file.
Thanks Saul!
Philip
>
> Can you enumerate which networking tools you have installed, if you are
> not using any network manager or dhcp client and relying on a static
> dns-nameserver entry, you might need resolvconf if you are not using it.
>
> Also which version of oe-core meta-data are you using?
>
> Sau!
>
>> Philip
>>
>>>
>>>>
>>>> I'll file bugs, but until I can figure out how it is suposed to work,
>>>> any bug I file is going to be pretty vague.
>>>>
>>>> This really should be easier.
>>>>
>>>> Philip
>>>> --
>>>> _______________________________________________
>>>> Openembedded-core mailing list
>>>> Openembedded-core@lists.openembedded.org
>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>>
>>>
>>>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-17 0:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16 15:12 Setting a a fixed resolv.conf file in OE built image Philip Balister
2014-12-16 16:40 ` Khem Raj
2014-12-16 16:55 ` Philip Balister
2014-12-16 17:06 ` Saul Wold
2014-12-17 0:54 ` Philip Balister
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.