We have added some custom files inside `/build/userpatches/overlay`, which is as follows:
/build/userpatches/overlay
/log-configurations
log-config
/scripts
myscript.sh
/services
myservice.service
We are building our image with the following command:
sudo ./compile.sh CLEAN_LEVEL="" BOARD=zeropi BRANCH=dev RELEASE=buster BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL
UPDATE: It seems that changing `mkdir -m 777 /scripts` to `mkdir -m 777 $SDCARD/scripts` has resolved both issues:
1. `customize-image.sh` is now running as expected.
2. We can now see our custom files inside `/build/userpatches/overlay`. These were "copied" to where we told `customize-image.sh` to place them.