From d26eb1d9a68d2c28c4fc6143ad71647ad32cc38e Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 4 Oct 2026 17:53:31 +0200 Subject: [PATCH] power: polkit is the module's package; without it logind refused the watcher its delay lock on a server --- modules/power/README.md | 4 ++++ modules/power/module.json | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/modules/power/README.md b/modules/power/README.md index a6d7741..f85d44a 100644 --- a/modules/power/README.md +++ b/modules/power/README.md @@ -80,3 +80,7 @@ declared stopped. The first version tried that and was refused on its first appl units are therefore not services the mesh manages. They have no install section, and the sleep targets want them through this module's drop-ins (`sleep.target.d`, and `suspend.target.d` with its three siblings) — the same way the laptop module asks for the NVIDIA driver's sleep actions. + +**polkit is this module's package.** logind gives a delay lock to a process that is not root only +through polkit. A server without polkit refused the watcher with "Permission denied", and its +sleeps and shutdowns would have gone unsaid. The module installs it; nothing else needed it there. diff --git a/modules/power/module.json b/modules/power/module.json index 3472f24..12ac72d 100644 --- a/modules/power/module.json +++ b/modules/power/module.json @@ -2,6 +2,7 @@ "module": "power", "version": "1", "capabilities": [ + "package-manager", "service-manager" ], "claims": [ @@ -27,6 +28,11 @@ "power_check" ], "resources": [ + { + "id": "polkit", + "type": "package", + "package": "polkit" + }, { "id": "scripts", "type": "archive",