January 2018
Intermediate to advanced
456 pages
12h 49m
English
A final way to customize images is by adding shell functions that get executed once the image has been created. You do this by adding the following to your image recipe or conf/local.conf file:
ROOTFS_POSTPROCESS_COMMAND += "function1;...;functionN"
You can use the path to the root filesystem in your command with the IMAGE_ROOTFS variable.
Classes would use the IMAGE_POSTPROCESS_COMMAND variable instead of ROOTFS_POSTPROCESS_COMMAND.
Examples of usage can be found in the debug-tweaks feature in Poky's rootfs-postcommands.bbclass, when images are tweaked to allow password-less root logins. This method is also commonly used to customize the root password of a target image.
Read now
Unlock full access