From cc1c6a5767765d24240a0d044e224d0197d59ac9 Mon Sep 17 00:00:00 2001 From: CroneKorkN Date: Sun, 10 May 2026 17:00:45 +0200 Subject: [PATCH] systemd: accept .slice extension in unit-file routing Slices are a standard systemd unit type; the existing routing only covered timer/service/mount/swap/target and raised on .slice. Same install path (/usr/local/lib/systemd/system/) and same systemd-reload trigger as the other unit kinds. --- bundles/systemd/items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/systemd/items.py b/bundles/systemd/items.py index 3e407be..31bba51 100644 --- a/bundles/systemd/items.py +++ b/bundles/systemd/items.py @@ -33,7 +33,7 @@ for name, unit in node.metadata.get('systemd/units').items(): 'svc_systemd:systemd-networkd.service:restart', ], } - elif extension in ['timer', 'service', 'mount', 'swap', 'target']: + elif extension in ['timer', 'service', 'mount', 'swap', 'target', 'slice']: path = f'/usr/local/lib/systemd/system/{name}' dependencies = { 'triggers': [