From: Dean <dean@ripperd.com>
To: Paul Eggleton <paul.eggleton@linux.intel.com>
Cc: yocto@yoctoproject.org
Subject: Re: DNS nameservers in Yocto
Date: Tue, 03 Feb 2015 13:42:08 -0600 [thread overview]
Message-ID: <54D12490.90503@ripperd.com> (raw)
In-Reply-To: <3808650.TK1iGa17XP@peggleto-mobl5.ger.corp.intel.com>
On 2/3/2015 12:11 PM, Paul Eggleton wrote:
> Hi Dean,
>
> On Tuesday 03 February 2015 11:20:01 Dean wrote:
>> On 2/3/2015 9:43 AM, Jim Abernathy wrote:
>>> I find that for Static IPs, I have to manually add my DNS name servers
>>> to /etc/resolv.conf instead of what I'm use to and that's put the line
>>> in /etc/network/interfaces with the dns-nameserver [IP] [IP].
>>>
>>> My knowledge base comes from Ubuntu Server where putting everything in
>>> "/etc/network/interfaces" covers most things.
>>>
>>> Anyone know why?
>> Add resolvconf to your image.
>>
>> That being said, I'm using dora and the package there was very
>> incomplete. I had to add quite a bit in a .bbappend to make it work
>> properly.
> Would the issues you found have been fixed by this commit?
>
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=35e0a3eb6725781eb291b3fa90694a68c3b64c60
>
> If not, we should really try to get these fixed in the original recipe - we'd
> certainly appreciate help there.
>
> Cheers,
> Paul
>
Yeah, that's about 95% of it. I don't think it has a service yet though?
Here is my .bbappend. It probably isn't perfect or bug free, but working
on my dora builds. I think I ripped the scripts out of the debian
packages and then fixed anything necessary to make them work with busybox.
cat resolvconf_1.74.bbappend
# Added by Dean to fix issues in resolvconf recipe
# look for files in this layer first
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += " file://fixpath.patch \
file://resolvconf.init \
file://netresolvconfdown \
file://netresolvconfup \
file://pppresolvconfdown \
file://pppresolvconfup "
inherit update-rc.d
INITSCRIPT_NAME = "resolvconf"
INITSCRIPT_PARAMS = "start 39 S . stop 41 0 6 ."
# add list-records script, its missing in distro
# add volatile resolv.conf - package maintainer didnt??!@?!
# Add startup/shutdown script
FILES_${PN} += " /lib/resolvconf/list-records "
do_install_append () {
install -d ${D}/lib/${BPN}
install -m 0755 bin/list-records ${D}/lib/${BPN}/
echo "l root root 0644 /etc/resolv.conf
${sysconfdir}/${BPN}/run/resolv.conf" >>
${D}${sysconfdir}/default/volatiles/99_resolvconf
echo "f root root 0644 ${sysconfdir}/${BPN}/run/resolv.conf none"
>> ${D}${sysconfdir}/default/volatiles/99_resolvconf
install -d ${D}${sysconfdir}/init.d
cp ${WORKDIR}/resolvconf.init ${WORKDIR}/resolvconf
install -m 0755 ${WORKDIR}/resolvconf ${D}${sysconfdir}/init.d/
# Add things needed for interfaces coming up and down
install -d ${D}${sysconfdir}/network/if-down.d/
install -d ${D}${sysconfdir}/network/if-up.d/
install -d ${D}${sysconfdir}/ppp/ip-down.d/
install -d ${D}${sysconfdir}/ppp/ip-up.d/
install -m 0755 ${WORKDIR}/netresolvconfdown
${D}${sysconfdir}/network/if-down.d/resolvconf
install -m 0755 ${WORKDIR}/netresolvconfup
${D}${sysconfdir}/network/if-up.d/000resolvconf
install -m 0755 ${WORKDIR}/pppresolvconfdown
${D}${sysconfdir}/ppp/ip-down.d/000resolvconf
install -m 0755 ${WORKDIR}/pppresolvconfup
${D}${sysconfdir}/ppp/ip-up.d/000resolvconf
}
prev parent reply other threads:[~2015-02-03 19:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-03 15:43 DNS nameservers in Yocto Jim Abernathy
2015-02-03 17:20 ` Dean
2015-02-03 18:11 ` Paul Eggleton
2015-02-03 19:25 ` Jim Abernathy
2015-02-03 19:42 ` Dean [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54D12490.90503@ripperd.com \
--to=dean@ripperd.com \
--cc=paul.eggleton@linux.intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.