[systemd-devel] Offline systemd unit file installer

Paassen, Hiram van Hiram.van.Paassen at mastervolt.com
Mon Aug 11 13:34:19 PDT 2014

> Van: Koen Kooi [koen at dominion.thruhere.net]
> Verzonden: maandag 11 augustus 2014 13:19
> Op 11 aug. 2014, om 12:47 heeft Lennart Poettering <lennart at poettering.net> het volgende geschreven:
>> On Sat, 09.08.14 06:44, Paassen, Hiram van (Hiram.van.Paassen at mastervolt.com) wrote:
>>> 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?
>> Well, what do you expect? I mean, you want to run the tool offline, so
>> you need to be able to run it on the machine you want to run it offline
>> on...
>>> 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.
>> systemd is written in C. Sorry.
>> Note that there's no need to the systemctl version to be in sync of the
>> image you are putting together and the OS you build it on. The code in
>> systemctl has been stable since quite a while now. Most distributions
>> should include it, unless you run Slackware or so. But systemd upstream
>> is really not the place to work around your weird choice of distro to
>> build systemd images from...
I am waiting for the first version of Ubuntu with systemd but until that day I will have to cope with the current situation.
I can probably install systemdctl on Ubuntu, but that also means more setup work for my less experienced colleagues.
I'd rather  keep the workstations as vanilla as possible.
>> That said, "systemctl enable" just creates a couple of symlinks in
>> /etc/systemd/system, you can easily do the equivalent in a handwritten
>> shell script.
Sure, that is not really a problem. But before spending to much work on a home made solution I assumed (correctly) other people must face the same issues.
> This is what we did for openembedded:
>        https://github.com/openembedded/oe-core/blob/master/meta/recipes-core/systemd/systemd-systemctl/systemctl
> regards,
> Koen
Thanks this is very helpful.

With  kind regards,



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