chiark / gitweb /
systemctl: for switch-root check, if we switch to a systemd init
authorHarald Hoyer <harald@redhat.com>
Thu, 6 Mar 2014 15:35:02 +0000 (16:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Mar 2014 03:45:33 +0000 (04:45 +0100)
commitf39d4a08e746e703d562076a0f622eb91dbdcd3e
treecb624857a80da40d0ff4e5ccb34b231d3bd4ecb3
parent9d9951a460a90ef0e1e0384742cefdcf85193f8c
systemctl: for switch-root check, if we switch to a systemd init

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.
src/shared/util.h
src/systemctl/systemctl.c