rpm %post section not getting executed when building the default-image

macv - February 17, 2011

I am trying to add a component which is binrary rpm , so I've a  recipe which inherits binrpm. I've added this component to INSTALL_PACKAGES and when I build my linux image, i see that whatever suppose to happen in %install section of rpm has happened but nothing of what was there in %post section. Which is basically modifying some files on root file system. 

Shouldn't inherit binrpm should take care of complete installation of rpm?

Are there any document on how the different bbclass like binrpm works?

 

 

Share this

Comments

Seemed like you were waiting

Seemed like you were waiting on this for a bit, macv, so I checked with the MV developers.

HTH:

"The binary bits only unpack the files, they do not run the post scripts because the entire purpose of the feature is to get something in binaries that are not cross-compiled. Because of this, the likelihood that the post script is compatible with cross-installation is slim-to-nil. However you should be able to add a post script to the binrpm recipe, that is cross-compatible."

 

rpm %post section not getting executed when building the default

This helps, thanks stacykor. 

I am planning to do it other way i.e. extract and install the post script and run at the first boot of system.

 

thanks

 

~macv