January 2018
Intermediate to advanced
456 pages
12h 49m
English
Start with an appropriate image, such as core-image-minimal, analyze the dependencies as shown in the Debugging the build system recipe in Chapter 1, The Build System, and decide which of them are not needed. You could also use the file sizes listed in the image's build history, as seen in the Using build history recipe, also in Chapter 1, The Build System, to detect the biggest files in the filesystem and review them. To sort the file sizes, which appear in the fourth column of the files-in-image.txt file, in reverse order, we could execute:
$ sort -r -g -k 4,4 files-in-image.txt -o sorted-files-in-image.txt sorted-files-in-image.txt: -rw-r--r-- root root 7267688 ./boot/zImage-4.1.44+g0d698de42426 -rwxr-xr-x root root 2667248 ...
Read now
Unlock full access