From: Harald Hoyer <har...@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

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to