title: Post-install script on Yocto-built linux
body: <p>I need to run a script on a target OS built by Yocto.</p>
  
  <p>This script needs to be ran as part of the install and thus must be ran only once (either after the entire OS install or on the first boot). It cannot be ran on the host system, as it depends on the hardware IO which exists only on the target.</p>
  
  <p>An additional, minor, constraint is that the rootfs is mounted as read only, but I guess that can be avoided by having the script re-mount as rw and again remount as r after the execution or something along those lines.</p>
  
  <p>Any help is appreciated.</p>