[systemd-devel] Placing systemd unit files on a non-root partition

Mantas Mikulėnas grawity at gmail.com
Wed Nov 8 11:03:12 UTC 2017


On Wed, Nov 8, 2017 at 12:31 PM, <magnus at minimum.se> wrote:

> Hi!
>
> My team is building a embedded (Linux) platform which is to be distributed
> within our company as a binary distribution. On top of the platform, other
> teams write applications and put in branding to create products.
>
> To separate the applications from the platform, apps and related files are
> placed in a separate partition that gets mounted at boot by systemd.
> When the system boots, the applications on the separate partition should
> start, preferably by systemd.
>
> TL;DR: How can I make systemd read and start services that are defined by
> units located in a directory that becomes available after a certain mount
> unit has run in the boot sequence?
>

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.

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20171108/3c50f5ef/attachment.html>


More information about the systemd-devel mailing list