[systemd-devel] howto migrate some things to systemd

Mirco Tischler mt-ml at gmx.de
Tue Apr 19 03:15:01 PDT 2011


2011/4/19 Michael Olbrich <m.olbrich at pengutronix.de>:
> Hi,
>
> On Tue, Apr 19, 2011 at 09:02:47AM +0200, Robert Schwebel wrote:
>> On Mon, Apr 18, 2011 at 11:57:46PM +0200, Mirco Tischler wrote:
>> > 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.
>>
>> That sounds pretty good, we'll try that!
>
> Unfortunately not. This is far too late. udev is already running and
> sockets are up too. At that point it's rather difficult to ensure that
> nothing else is executed.
> And there is already stuff confused by the ro/rw filesystem:
> -------------------------
> systemd-user-sessions[430]: Failed to remove /etc/nologin file: Read-only file system
> -------------------------
>
> Regards,
> Michael Olbrich
setup.service:
DefaultDependencies=off
Requires=local-fs.target
After=local-fs.target

With such a service file as default target you should end up with only
the fs mounted
and not much else.


More information about the systemd-devel mailing list