[systemd-devel] Offline systemd unit file installer

Paassen, Hiram van Hiram.van.Paassen at mastervolt.com
Fri Aug 8 23:44:42 PDT 2014


Van: Andrey Borzenkov [arvidjaar at gmail.com]
Verzonden: zaterdag 9 augustus 2014 5:48

> В Fri, 8 Aug 2014 19:57:12 +0000
> "Paassen, Hiram van" <Hiram.van.Paassen at mastervolt.com> пишет:
>
> > Hey,
> >
> > Is there a off-line variant for systemctl enable/disable? We use buildroot to generate/cross-compile a file-system and make extensive use of systemd. Right now we use installer scripts to create the symlinks needed to > enable a unit. This means changes in unit files also need changes in the corresponding install scripts.
> >
> > Is there a tool or something in the systemd source that can parse unit files and install the required symlinks in the appointed directory? Something that can run on the host system?
>
> systemctl --root=/path/to/root enable ...
>
>
> > What would be the best way to do such a thing if there is no tool?
> >
> > Best regards,
> >
> > Hiram
> >

Am I correct in thinking this only works on systemd enabled host systems
or if you cross-compile for the same architecture? So you can use the just compiled version of systemctl?

Neither of which is the case for us...
Am I expected to compile systemd twice in that case, one time as part of the host 'toolchain' and a second for the actual target?
I was rather hoping for something portable like a shell or python script.

Best regards,

Hiram

________________________________

Power Products, LLC Email Notice

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.

Thank you.


More information about the systemd-devel mailing list