Generating a root filesystem image
One of the most common uses of Poky is the rootfs image generation. The rootfs image should be seen as a ready-to-use root filesystem for a target. The image can be made up of one or more filesystems and may include other artifacts to be available during its generation, such as the Linux kernel, device tree, and bootloader binaries. The process of generating the image is composed of several steps, and its most common usages are as follows:
- Generate the
rootfsdirectory. - Create the required files.
- Wrap the final filesystem according to the specific requirements (it may be a disk file with several partitions and contents).
- Finally, compress it, if applicable.
All these steps are performed by subtasks of do_rootfs.
rootfs is basically a directory with the desired packages installed (package generation is covered in Chapter 6, Assimilating Packaging Support), with the required tweaks applied just afterward. The tweaks make minor adjustments to the rootfs contents...