Using packages to generate a rootfs 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 composed of one or more filesystems. It may include other artifacts available during its generation, such as the Linux kernel, the device tree, and bootloader binaries. The process of generating the image is composed of several steps. Its most common uses are as follows:
- Generating the
rootfs
directory - Creating the required files
- Wrapping the final filesystem according to the specific requirements (it may be a disk file with several partitions and contents)
- Finally, compressing it, if applicable
The sub-tasks of do_rootfs
perform all these steps. rootfs
is a directory with the desired packages installed, with the required tweaks applied afterward. The tweaks make minor adjustments to the rootfs
contents – for example, when building a development...