[systemd-devel] [PATCH 2/2] [V4] systemctl: for switch-root check, if we switch to a systemd init

Lennart Poettering lennart at poettering.net
Mon Mar 10 20:50:29 PDT 2014


On Thu, 06.03.14 16:35, harald at redhat.com (harald at redhat.com) wrote:

> From: Harald Hoyer <harald at redhat.com>
> 
> If "systemctl switch-root" is called with a specific "INIT" or
> /proc/cmdline contains "init=", then systemd would not serialize
> itsself.
> 
> Let systemctl check, if the new init is in the standard systemd
> installation path and if so, clear the INIT parameter,
> to let systemd serialize itsself.

Merged with some modifications to make the memory allocation
unnecessary.

I didn't test this though, could you have a closer look if everything
still works as intended with my changes?

Thanks!

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list