Yocto Image Rootfs
Use this skill for image composition and root filesystem problems. Distinguish recipe names, package names, package groups, image features, and rootfs package manager behavior before suggesting fixes.
Evidence
Ask for or inspect:
image recipe or local.conf change
failing do_rootfs log
IMAGE_INSTALL / IMAGE_FEATURES / EXTRA_IMAGE_FEATURES
PACKAGE_CLASSES
DISTRO_FEATURES / MACHINE_FEATURES
package name being installed
oe-pkgdata-util output
Useful commands:
bitbake -e <image> | rg '^(IMAGE_INSTALL|IMAGE_FEATURES|EXTRA_IMAGE_FEATURES|PACKAGE_CLASSES|DISTRO_FEATURES|MACHINE_FEATURES)='
bitbake -c rootfs <image>
oe-pkgdata-util list-pkgs | rg '<name>'
oe-pkgdata-util lookup-recipe <package>
oe-pkgdata-util find-path '*/usr/bin/<tool>'
Review Rules
- Use runtime package names in
IMAGE_INSTALL, not assumed recipe names. - Prefer image recipes or package groups for product images; keep
local.confchanges local. - Use
IMAGE_FEATURESin image recipes andEXTRA_IMAGE_FEATURESin local configuration. - Check package group recipes when adding groups of related packages.
- For
do_rootfsfailures, inspect package conflicts, missing providers, license policy, postinstall scripts, and package manager backend. - Do not use
DEPENDSto add software to an image.
References
- Read references/image-rootfs.md.
- Read references/variables-core.md for
IMAGE_INSTALL,IMAGE_FEATURES, and package variables. - Read references/tasks-reference.md for
do_rootfs,do_image, and package tasks.
Output
Answer with:
- recipe name vs package name status
- exact variable or image recipe change
- command to prove package availability
- rootfs validation command
- official-doc section to verify