Portenta X8, execute script at boot

How can I create a bash script to be executed at boot, or, how can I run a container at startup? Thank you.

For the container, I figured out. Would like to know though, how can I execute a script at boot. Thanks.

I was using rc.local to execute a script or app automatically after boot.

On the Portenta X8 embedded Yocto linux I didn't find the rc.local hence my question for the support team of this specific board.

They didn't use rc.local anymore thus you cannot find it. You can create it by yourself, hope that helps you.

its crazy that its so hard to run a script at boot for this thing.