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

}
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to