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 <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Sunil Mohan Adapa 2025-08-29 20:45:20 -07:00 committed by Joseph Nuthalapati
parent d5f22a8755
commit 52cde4c0b6
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -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;