how to include script into image?

I want to run my script in image,for example,I make one and named it “myscript” in dir bin,after [perms=+r,+x] I add new line “myscript”,but when I run it in image ,the error is reported “unable to start myscript”.

Add your script file in the [data=copy] section of the boot image. Make sure you use the fully qualified path name: /usr/local/bin/myscript