Bug#1129339: apt hangs for 25 seconds before acting if logind isn't running
Mark Hindley
mark at hindley.org.uk
Wed Mar 4 09:55:32 GMT 2026
Control: tags -1 patch pending
On Wed, Mar 04, 2026 at 07:30:26AM +0000, Mark Hindley wrote:
> I will do some more testing. If there are no regressions for supported
> configurations, I would be happy to incorporate this change.
Initial testing of the patch below is good.
Mark
commit 7f0a532b9dfb2b7e439a675a0aec85263dcba920
Author: Mark Hindley <mark at hindley.org.uk>
Date: Wed Mar 4 07:36:54 2026 +0000
d/p/Disable_Dbus_activation_by_default.patch: change to Exec=bin/false to avoid Dbus callers hanging if elogind has been disabled.
Closes: #1129339
diff --git a/debian/patches/Disable_Dbus_activation_by_default.patch b/debian/patches/Disable_Dbus_activation_by_default.patch
index 7134f7a97..29c0b020d 100644
--- a/debian/patches/Disable_Dbus_activation_by_default.patch
+++ b/debian/patches/Disable_Dbus_activation_by_default.patch
@@ -17,5 +17,5 @@ index 822f476..bd37d0b 100644
-Exec={{LIBEXECDIR}}/elogind --daemon
+# By default, Dbus activation of elogind is disabled. The daemon is started via an init script.
+# Exec={{LIBEXECDIR}}/elogind --daemon
-+Exec=/bin/true
++Exec=/bin/false
User=root
More information about the Debian-init-diversity
mailing list