[yocto] replace etc/network/interfaces with symbolic link

Aurele Traynard aurele.traynard at gmail.com
Mon Feb 9 01:58:50 PST 2015


Thank you for all answers, I looked

In fact I found another problem, even if I modify the original recipe I
can't get a modified rpm, or rootfs...
I commented lines concerning interfaces files but it seems that nothing is
modified in the rootfs and in the rpm...
if someone understands what I missed...

the bitbake file :
http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb
and I commented out :
#install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces
#CONFFILES_${PN} = "${sysconfdir}/network/interfaces"

Aurèle

2015-02-06 20:38 GMT+01:00 Bryan Evenson <bevenson at melinkcorp.com>:

> Aurele,
>
> One possible issue is ${sysconfdir}/network/interfaces is listed in the
> CONFFILES in the original recipe.  It may still be installing this file
> because it is listed under CONFFILES.  Try adding:
>
> CONFFILES_${PN} = ""
>
> To your bbappend.
>
> Regards,
> Bryan
>
> > -----Original Message-----
> > From: yocto-bounces at yoctoproject.org [mailto:yocto-
> > bounces at yoctoproject.org] On Behalf Of Aurele Traynard
> > Sent: Friday, February 06, 2015 10:55 AM
> > To: yocto at yoctoproject.org
> > Subject: [yocto] replace etc/network/interfaces with symbolic link
> >
> > Hi,
> >
> >
> > I'm trying to find a clean way to replace /etc/network/interfaces with a
> > symbolic link. (it comes with init-ifupdown recipe) I tried with  a
> bbappend
> > but nothing appear in final filesystem and /etc/network/interfaces still
> > exists...
> >
> >
> > I'm sure the following code is completely wrong, but I don't know how to
> do
> > this with the right way...
> > do_install_append () {
> >     mkdir -p datas/network
> >
> >     install -d 0755 ${D}/datas
> >     install -d 0755 ${D}/datas/network
> >     install -m 0755 ${D}${sysconfdir}/network/interfaces
> ${D}/datas/network
> >     #mv ${D}${sysconfdir}/network/interfaces ${D}/datas/network
> >     rm ${D}${sysconfdir}/network/interfaces
> >     ln -sf /datas/network/interfaces ${D}${sysconfdir}/network/interfaces
> >
> > }
> > FILES_${PN} += "/datas/ /datas/network/interfaces"
> >
> >
> > thanks for any help
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150209/5db0fb76/attachment.html>


More information about the yocto mailing list