@cgwalters commented on this pull request.
> + state->logging = 1;
+
+ /* ...don't log test transactions */
+ if (rpmtsFlags(ts) & (RPMTRANS_FLAG_TEST|RPMTRANS_FLAG_BUILD_PROBS))
+ state->logging = 0;
+
+ /* ...don't log chroot transactions */
+ if (!rstreq(rpmtsRootDir(ts), "/"))
+ state->logging = 0;
+
+ /* Don't open */
+ if (!state->logging || state->bus)
+ return RPMRC_OK;
+
+ if (lstat("/run/systemd/system/", &st) == 0) {
+ if (S_ISDIR(st.st_mode)) {
DBus the protocol doesn't need systemd (it predates it) but lately integrates
with it well. The reason I think we do this check is it's a proxy for "is this
system booted".
For example, there's no dbus running in a default podman/docker style container
(neither is there systemd, or in fact usually there isn't any other processes
at all except e.g. yum/zypper running). So there's no reason to try announcing.
Related discussion and code: https://github.com/systemd/systemd/pull/7631
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1255#discussion_r436890836
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint