[yocto] Modify RFS before final image is created

Tobias Blom tobias.blom at techne-dev.se
Fri Apr 25 02:16:20 PDT 2014


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.blom at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140425/052960a5/attachment.pgp>


More information about the yocto mailing list