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

harald at redhat.com harald at redhat.com
Wed Mar 5 05:37:45 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         | 20 +++++++++++++-------
 src/shared/util.h         |  2 ++
 src/systemctl/systemctl.c | 11 +++++++++++
 3 files changed, 26 insertions(+), 7 deletions(-)

-- 
1.8.5.3



More information about the systemd-devel mailing list