Comment 3 for bug 1565617

Revision history for this message
Martin Pitt (pitti) wrote :

Thinking about this some more, we don't actually want to query/use polkit when calling systemctl from maintainer scripts. These always run as root, and it's not expected at all that they (potentially) ask interactively for authentication. So we can call systemctl with --no-ask-password to disable querying of polkit which will not only avoid these warnings, but also avoid triggering polkit at all, which robustifies package installation as there are fewer moving parts.

This needs to be done in init-system-helpers as well as systemd's package trigger.