From 52cde4c0b6c7848d62cc67954764b0bc3f5dc68b Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 29 Aug 2025 20:45:20 -0700 Subject: [PATCH] upgrades: Don't allow needs-restart to restart privileged daemon Fixes: #2534. - Otherwise, if python standard library is updated, needs-restart will determine that the freedombox-privileged.service needs to be restarted. The service may have triggered the 'apt-get install' operation that triggered needs-restart in the first place. That causes the install operation to fail. Tests: - Installing Calibre app which also brings in python standard library update succeeds and freedombox-privileged.service is not restarted during 'apt-get install' operation. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Joseph Nuthalapati --- .../usr/share/freedombox/etc/needrestart/conf.d/freedombox.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/plinth/modules/upgrades/data/usr/share/freedombox/etc/needrestart/conf.d/freedombox.conf b/plinth/modules/upgrades/data/usr/share/freedombox/etc/needrestart/conf.d/freedombox.conf index c01edd9d2..402d0c31e 100644 --- a/plinth/modules/upgrades/data/usr/share/freedombox/etc/needrestart/conf.d/freedombox.conf +++ b/plinth/modules/upgrades/data/usr/share/freedombox/etc/needrestart/conf.d/freedombox.conf @@ -4,3 +4,4 @@ $nrconf{restart} = 'a'; # Don't restart freedombox upgrade services. $nrconf{override_rc}->{qr(^freedombox-manual-upgrade\.service$)} = 0; $nrconf{override_rc}->{qr(^freedombox-dist-upgrade\.service$)} = 0; +$nrconf{override_rc}->{qr(^freedombox-privileged\.service$)} = 0;