[Pkg-utopia-maintainers] Bug#881342: Reassigning to rtkit 0.11-4

Алексей Шилин rootlexx at mail.ru
Mon Feb 5 15:18:27 UTC 2018


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


-- 
Алексей Шилин
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-package-ordering-issues.patch
Type: application/x-patch
Size: 957 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20180205/456a28e2/attachment.bin>


More information about the Pkg-utopia-maintainers mailing list