reassign 881342 rtkit 0.11-4
thanks
After a bit of investigation, I've found that the source of the issue is
actually
the rtkit package.
rtkit postinst script contains the following lines added by debhelper:
# Automatically added by dh_systemd_start
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
deb-systemd-invoke start rtkit-daemon.service >/dev/null || true
fi
# End automatically added section
Here rtkit-daemon service, which is of Type=dbus, is being started at package
configuration phase.
systemd.service(5) says [1]:
The following dependencies are implicitly added:
* Services with Type=dbus set automatically acquire dependencies of
type
Requires= and After= on dbus.socket.
So starting rtkit-daemon.service activates dbus.socket which in turn leads to
dbus.service activation when the rtkit daemon tries to connect to the bus.
The issue here is that rtkit currently only recommends dbus, which doesn't
guarantee proper ordering i.e. rtkit may be scheduled to be configured *before*
dbus and thus start the latter before its configuration (which includes the
system
user creation) is complete, leading to the reported issue.
This issue should affect only stretch because according to its changelog rtkit
is
no longer started by default since 0.11-5. Whether the version in stable should
be fixed is up to its maintainer. I've attached a patch which moves dbus from
Recommends to Depends, fixing the issue.
Reassigning to rtkit 0.11-4.
[1]
https://www.freedesktop.org/software/systemd/man/systemd.service.html#Implicit%20Dependencies
--
Алексей Шилин
From 1144e3f5f382412e427573ad8168c45125ccd980 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=A8=D0=B8?=
=?UTF-8?q?=D0=BB=D0=B8=D0=BD?= <rootlexx@mail.ru>
Date: Mon, 5 Feb 2018 17:11:16 +0300
Subject: [PATCH] Fix package ordering issues
The postinst script starts the daemon, which in turn activates
dbus.service. Therefor, we should depend on dbus to ensure that
it is already configured by the time the postinst script is run.
Fixes: #881342
---
debian/control | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index f348070..9b8d703 100644
--- a/debian/control
+++ b/debian/control
@@ -22,10 +22,10 @@ Package: rtkit
Architecture: any
Depends:
adduser,
+ dbus,
${misc:Depends},
${shlibs:Depends}
Recommends:
- dbus,
policykit-1
Description: Realtime Policy and Watchdog Daemon
RealtimeKit is a D-Bus system service that changes the
--
2.11.0