<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 8, 2017 at 12:31 PM,  <span dir="ltr"><<a href="mailto:magnus@minimum.se" target="_blank">magnus@minimum.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
My team is building a embedded (Linux) platform which is to be distributed<br>
within our company as a binary distribution. On top of the platform, other<br>
teams write applications and put in branding to create products.<br>
<br>
To separate the applications from the platform, apps and related files are<br>
placed in a separate partition that gets mounted at boot by systemd.<br>
When the system boots, the applications on the separate partition should<br>
start, preferably by systemd.<br>
<br>
TL;DR: How can I make systemd read and start services that are defined by<br>
units located in a directory that becomes available after a certain mount<br>
unit has run in the boot sequence?<br></blockquote><div><br></div><div>Use an initramfs and make it mount the necessary parts of /usr before switching to the main system. That's the usual approach in desktop/server distros.</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>