bus: don't switch to kdbus if not requested
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 6 May 2015 16:18:43 +0000 (18:18 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 6 May 2015 16:21:51 +0000 (18:21 +0200)
commitd79acc309327f8c0863bd3da8b93d926a1c93ba1
tree563a1eb14323f7346bdd0378481c300d6ea9c4ce
parentf2bf5007a97bf5993128a6e16105005f819b60cf
bus: don't switch to kdbus if not requested

Whenever systemd is re-executed, it tries to create a system bus via
kdbus. If the system did not have kdbus loaded during bootup, but the
module is loaded later on manually, this will cause two system buses
running (kdbus and dbus-daemon in parallel).

This patch makes sure we never try to create kdbus buses if it wasn't
explicitly requested on the command-line.
src/core/busname.c
src/core/kmod-setup.c
src/core/manager.c
src/dbus1-generator/dbus1-generator.c
src/libsystemd/sd-bus/bus-util.c
src/libsystemd/sd-bus/bus-util.h