[systemd-devel] [PATCH 0/2] [V3] systemd serialization on switch-root

harald at redhat.com harald at redhat.com
Thu Mar 6 00:12:56 PST 2014


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.

Harald Hoyer (2):
  util: add files_same() helper function
  systemctl: for switch-root check, if we switch to a systemd init

 src/shared/util.c         | 22 +++++++++++++++-------
 src/shared/util.h         |  2 ++
 src/systemctl/systemctl.c | 27 +++++++++++++++++++++------
 3 files changed, 38 insertions(+), 13 deletions(-)

-- 
1.8.5.3



More information about the systemd-devel mailing list