<div>Below is what I ended up with. Let me know if there are better/more standard ways to do this.</div><div><br></div><div>Thanks,</div><div>Cliff</div><div><br></div><div>----------------------------</div><div>my-app.service:</div>
<div>Wants=data.mount</div><div><br></div><div>----------------------------
</div><div>data.mount:</div><div><div>[Unit]</div><div>Description=Mount data partition</div><div>Requires=data-attach.service</div><div>After=data-attach.service (this is important, otherwise the mount command runs before ubiattach finishes -- had me stumped for awhile)</div>
<div><br></div><div>[Mount]</div><div>What=ubi1:data</div><div>Where=/data</div><div>Type=ubifs</div></div><div><br></div><div>----------------------------
</div><div><div>data-attach.service:</div><div>[Unit]</div><div>Description=Attach data ubi partition</div><div><br></div><div>[Service]</div><div>Type=oneshot</div><div>ExecStart=/usr/sbin/ubiattach /dev/ubi_ctrl -m 6</div>
</div><div><br></div><div><br></div>-- <br>=================<br><a href="http://bec-systems.com" target="_blank">http://bec-systems.com</a><br>