Build Time config

First of all, /home/root is not in rootfs partition, it is in userapp partition.

Here shows how to create a folder in the root directory:

Here shows how to put files in yocto image

Here shows how to use the default init script in the yocto image instead of the modified one: