[yocto] Bitbake recipe Post install script not executed once the package is installed

Paul Eggleton paul.eggleton at linux.intel.com
Mon Mar 16 02:41:00 PDT 2015


On Monday 16 March 2015 05:15:45 Bipnesh, Abhinav wrote:
> Paul Eggleton wrote:
> > Bipnesh, Abhinav wrote:
> > > One thing to add here is we are running Busybox on which I am trying to
> > > perform the installation.
> > 
> > That shouldn't matter.
>
> The reason for asking this is due to this answer on stackoverflow
> (http://stackoverflow.com/a/11316251/570200) and also the mailing list of
> busybox says this "The busybox rpm command is more "rpm2cpio --install"
> than anything else.  It doesn't support pre or post scripts, doesn't
> maintain a repository...
> 
> (http://lists.busybox.net/pipermail/busybox/2006-November/059507.html)"
> 
> Also the rpm command didn't list -e or other such option which I can see on
> other distribution. Below is sample output # rpm
> BusyBox v1.22.1 (2015-03-03 14:40:56 IST) multi-call binary.
> 
> Usage: rpm -i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm
> 
> Please note that simple echo command is also not working for which I expect
> to echo the output on the console during the installation process.

Oh, well, there's your problem then - I wasn't aware busybox even had an rpm 
command; clearly that will not work if you expect postinstall scripts to be 
executed because as you say it does not support them. We don't enable 
busybox's rpm command out of the box, so I can only assume you have enabled it 
- if you do want full RPM I suggest you disable it (CONFIG_RPM should not be 
set in busybox's config) and ensure IMAGE_FEATURES contains "package-
management" so that the proper rpm utility gets installed.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list