Running the prepare

Overlay tree is in ./root (the default)

Chrooted tree to go in ./wordpress-root

kiwi --prepare . --root wordpress-root

Oh, wait, config.sh

The last step of the prepare phase.

The primary intended use of this script is to complete system configuration such as service activation. For detailed description pre-defined configuration functions consult the kiwi::config.sh(1) man page."

The second part: create.

Runs your images.sh

Builds the final image from the result.

At the beginning of the image creation process the optional images.sh script is executed at the top level of the unpacked image directory. Unlike the config.sh script, the images.sh script does not have a target use case. The script is most often used to remove files that are no needed in the final image.