[yocto] care when using remove_packaging_data_files

Chatre, Reinette reinette.chatre at intel.com
Fri Mar 30 09:42:25 PDT 2012


On Thu, 2012-03-29 at 23:28 -0700, Khem Raj wrote:
> On Thu, Mar 29, 2012 at 10:13 AM, Chatre, Reinette
> <reinette.chatre at intel.com> wrote:
> > Hi,
> >
> > I am building an image using ipk packages. The minimal images all seem
> > to set ROOTFS_POSTPROCESS_COMMAND to remove_packaging_data_files, which
> > (for all package management systems) recursively removes the packages
> > directory in /var/lib. This seems a bit harsh considering that some
> > packages may still be in the unpacked state and thus have a script in
> > that directory that needs to be run when the image boots.
> 
> hmmm what cased did you find ? is it possible to fix the recipe itself
> to have those scripts post processed offline

Absolutely, an option is indeed to look if recipe can do everything when
image is created. I was just surprised to learn that these minimal
images by default prevent all first boot post install scripts from
running.

Reinette



More information about the yocto mailing list