Yocto rootfs overlay

Use the ROOTFS_POSTPROCESS_COMMAND to specify a list of functions to call once the OpenEmbedded build system has created the root filesystem.

Create a rootfs/ directory in the image recipe directory.

ROOTFS_POSTPROCESS_COMMAND += "rfs_overlay;" 

rfs_overlay() {
        rsync -a {THISDIR}/rootfs/*{WORKDIR}/rootfs
}

Leave a Reply

Your email address will not be published. Required fields are marked *