[systemd-devel] howto migrate some things to systemd

Lennart Poettering lennart at poettering.net
Tue Apr 19 16:16:37 PDT 2011


On Mon, 18.04.11 23:57, Mirco Tischler (mt-ml at gmx.de) wrote:

> > I'm trying to migrate some stuff to systemd, but I have some problems
> > getting it right.
> > The scenario:
> > I'm cross-building root file systems. I try to do as much as possible
> > on the host system, but there is some stuff that needs to run on the target
> > when booting for the first time. I'm not sure how to integrate this with
> > systemd.
> > Some of the issues I have:
> > - With a classic init, the init-script just touches a file to indicate the
> >  one-time stuff is complete. Is there a better way for this with systemd?
> How about pointing the default.target symlink at your custom unit that
> pulls in only
> a very basic system and executes your custom setup script.
> And when you're done link default.target back to
> multi-user.target or whatever unit you want to start as a default and then
> reboot, or if you're brave call systemctl isolate default.target.

Nice idea. This is a pretty good solution I believe for embedded stuff.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list