OK, I figured out #3, it appears that soft links in a wants directory does the trick:<div><br></div><div><div>./sysinit.target.wants/cliff.mount -> ../cliff.mount</div><div><div>./sysinit.target.wants/dev-hugepages.mount -> ../dev-hugepages.mount</div>
<div>./sysinit.target.wants/dev-mqueue.mount -> ../dev-mqueue.mount</div><div>./sysinit.target.wants/sys-fs-fuse-connections.mount -> ../sys-fs-fuse-connections.mount</div><div>./sysinit.target.wants/sys-kernel-config.mount -> ../sys-kernel-config.mount</div>
<div>./sysinit.target.wants/sys-kernel-debug.mount -> ../sys-kernel-debug.mount</div></div><div><br></div><div>Thanks,</div><div>Cliff</div><br><div class="gmail_quote">On Wed, Jul 25, 2012 at 3:35 PM, Cliff Brake <span dir="ltr"><<a href="mailto:cliff.brake@gmail.com" target="_blank">cliff.brake@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><br></div><div>I'm trying to figure out how to mount a UBI filesystem in systemd.</div><div><br></div><div>
One wrinkle is I need to run:</div><div><br></div><div>ubiattach /dev/ubi_ctrl -m 6</div><div><br></div>
<div>before the file system is mounted.</div><div><br></div><div>1) what is the best way to run ubiattach?  Should this be a service that runs first?</div><div>2) what is the best Before target to use for mounting a data patition?</div>

<div>3) how do *.mount files get enabled?  It seems I can start/stop them, but not enable/disable.</div><div><br></div><div>Thanks,</div><div>Cliff<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>
-- <br>=================<br><a href="http://bec-systems.com" target="_blank">http://bec-systems.com</a><br>

</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>=================<br><a href="http://bec-systems.com" target="_blank">http://bec-systems.com</a><br>
</div>