Solved. Ended up using the init.sh in the root directory.
Have a script that mounts an image: mount /sdcard/ubuntunew.img /d Starts mysqld:...