Redo insmod after reboot

Hello,
In our development environment, we have 2 containers that communicate via virtual serial ports which are created by using the tty0tty kernel module.
The module is inserted when one of the 2 containers is started, but as containers are not restarted after a reboot, how do I reload the kernel module after a reboot?
all suggestions are welcome,
Bart

Hi, the supervisor should start all containers at boot so if the containers are loading the modules in their entry script all should be fine.

You probably need to look into understanding why are the containers not being started at boot.

I changed the sequence a bit, so that one of the 2 containers that needs the module, loads it.
But for the second, eventhough I have a depends_on relation for the first, the /dev/tnt0 is not yet available when it starts.
So I now have a workaround for the second service to exit with error if the /dev/tnt0 available and balena will then retry starting the service. The second time usually the start-up is ok.