Honey, I shrunk the rootfs!
summary
Shows how to get a bootable Yocto rootfs down from ~28 MB to ~2 MB by removing distro/machine/image package sources and rebuilding with size-focused toolchains. Uses BitBake variable inspection, buildhistory diffs and oe-pkgdata to find which packages and files are pulled in, removes kernel modules and recommends, swaps glibc for musl and uses busybox init, and generates dependency graphs with bitbake/oe-depends; result boots into a shell and runs basic commands.
AI-written summary · about
chapters (12)
- 0:00Introduction to talk
- 1:46What is root filesystem
- 3:11Why shrink root filesystem
- 5:21Approaches to shrink size
- 7:27Distro configuration changes
- 10:39Build history for tracking
- 12:47Machine configuration changes
- 15:39Image recipe customization
- 17:22Inspecting package contents
- 19:49Dependency tracking tools
- 23:02Software optimization techniques
- 25:09Closing thoughts and tips
