[OE-core] [PATCH] os-release: fix to install in the expected location

richard.purdie at linuxfoundation.org richard.purdie at linuxfoundation.org
Wed Sep 5 08:47:53 UTC 2018


On Tue, 2018-09-04 at 19:04 -0700, Andre McCurdy wrote:
> On Tue, Sep 4, 2018 at 3:36 PM, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
> > On Tue, 2018-09-04 at 13:19 -0700, Andre McCurdy wrote:
> > > On Tue, Sep 4, 2018 at 8:50 AM, Ross Burton <ross.burton at intel.co
> > > m>
> > > wrote:
> > > This probably needs an "rm -f ${D}${sysconfdir}/os-release" too
> > > to
> > > prevent problems if install is run twice as lnr doesn't handle
> > > the
> > > case where the target already exists.
> > 
> > Doesn't do_install clean out ${D} each time it reruns though?
> 
> Yes, it does. Sometimes it's useful to rerun the run.do_install
> script
> manually though.

We don't support that, I think its reasonable to assume that ${D} is
empty at the start of do_install. To do otherwise would mean changing a
lot of do_install functions for very little gain IMO.

Cheers,

Richard



More information about the Openembedded-core mailing list