Hi all,

I’ll answer my own question. It seem ROOTFS_POSTPROCESS_COMMAND or 
ROOTFS_POSTINSTALL_COMMAND is the way to go.

I did however run into a problem when running my script. Using variable ${D} in 
my ROOTFS_POSTINSTALL_COMMAND gives the “wrong” path - it points to …/image and 
I’d expect it to contain the path to …/rootfs. It seem the variable is replaced 
before my function is executed.

I solved this by using variable ${IMAGE_ROOTFS} instead.

/Toby

On 25 apr 2014, at 09:22, Tobias Blom <tobias.b...@techne-dev.se> wrote:

> Hi all,
> 
> I have run into a problem that I’m not able to figure out how to solve, and 
> turn to the list to ask for general directions.
> 
> I need to modify my root FS just before the final image is created. The 
> problem is that I do now know where to implement my code.
> 
> More specific, I want to copy a couple of RPM-packages to the final RFS, 
> packages that have just been installed. The reason is to be able to perform a 
> rollback later on.
> 
> Any help and general pointing in the right direction would be much 
> appreciated.
> 
> Kind regards,
> Toby

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to