[OE-core] [PATCH 1/1] image.bbclass: leave metadata in place if a PM is installed in the image

Laurentiu Palcu laurentiu.palcu at intel.com
Thu Sep 5 13:25:04 UTC 2013


On Thu, Sep 05, 2013 at 01:29:34PM +0100, Phil Blundell wrote:
> On Thu, 2013-09-05 at 07:19 -0500, Paul Eggleton wrote:
> > I'm clearly missing something here. If we have a generic mechanism to run 
> > postinstall scripts now, and "package-management" is not in IMAGE_FEATURES, 
> > why do we need or want the package manager to be in control of running the 
> > postinstalls?
> 
> We don't.  The postinsts should be getting run by run-postinsts.
Ok, I guess I forgot to mention why the issue mentioned by Paul happens
and run-postinsts doesn't do its job.

Well, as it happens, opkg postinstall creates a S98run-postinsts script
in rcS.d that will overwrite run-postinsts one.

We could fix that by making opkg create the script on position 97 and
both scripts will run in this case. Opkg one will fail, since there is
no metadata available, but run-postinsts will work because the
postinstalls are saved in /etc/(ipk|deb|rpm)_postinsts directory.

The only 'issue' remaining is the lack of metadata if one chooses to
manually install a PM when 'package-management' is disabled.

Now that I think about it, this might be a better alternative. But I
didn't test it though. It just came to my mind...

What do you think?

Laurentiu

> 
> I must admit I still don't entirely understand what the problem is that
> Laurentiu is trying to fix with his patch, and the description in the
> Yocto bugzilla remains opaque to me.  Can you clarify what exactly it is
> that's currently going wrong?
> 
> p.
> 
> 



More information about the Openembedded-core mailing list