diff -Nru dbus-broker-37/debian/changelog dbus-broker-37/debian/changelog --- dbus-broker-37/debian/changelog 2025-06-16 14:58:24.000000000 +0100 +++ dbus-broker-37/debian/changelog 2025-07-14 21:48:29.000000000 +0100 @@ -1,3 +1,9 @@ +dbus-broker (37-2) unstable; urgency=medium + + * postinst: add workaround for reload timing out on upgrade + + -- Luca Boccassi Mon, 14 Jul 2025 21:48:29 +0100 + dbus-broker (37-1) unstable; urgency=medium * Update upstream source from tag 'upstream/37' diff -Nru dbus-broker-37/debian/dbus-broker.postinst dbus-broker-37/debian/dbus-broker.postinst --- dbus-broker-37/debian/dbus-broker.postinst 2023-02-08 11:43:32.000000000 +0000 +++ dbus-broker-37/debian/dbus-broker.postinst 2025-07-14 15:18:52.000000000 +0100 @@ -45,6 +45,22 @@ if [ -n "$2" ] && systemctl --quiet is-active dbus-broker.service; then reboot_required 1 + # begin-remove-after: released:trixie + # When updating from versions << 37 the service type will change, + # but given we cannot restart the service we need to add an ephemeral + # override, otherwise reloading will be stuck and time out, as the + # RELOADING=1 sd_notify message won't be sent to the system manager. + if dpkg --compare-versions "$2" lt 37~; then + mkdir -p /run/systemd/system/dbus-broker.service.d/ + cat </run/systemd/system/dbus-broker.service.d/debian-type-override.conf +[Service] +Type=notify +ExecReload=/usr/bin/busctl call org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus ReloadConfig +EOF + systemctl daemon-reload || true + fi + # end-remove-after + # In case we got new configuration files systemctl reload dbus-broker || true fi