From d2ad3d698ff0509c7f1d0fd5f3d945d5f482df84 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 26 Apr 2024 09:33:48 +0200 Subject: [PATCH] Don't enable services that will be afterwards disabled --- .../libraries/setsystemdservicesstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/system_upgrade/common/actors/systemd/setsystemdservicesstates/libraries/setsystemdservicesstate.py b/repos/system_upgrade/common/actors/systemd/setsystemdservicesstates/libraries/setsystemdservicesstate.py index 3f84f59f68..8aeb5c2ca1 100644 --- a/repos/system_upgrade/common/actors/systemd/setsystemdservicesstates/libraries/setsystemdservicesstate.py +++ b/repos/system_upgrade/common/actors/systemd/setsystemdservicesstates/libraries/setsystemdservicesstate.py @@ -15,7 +15,7 @@ def process(): msg = 'Attempted to both enable and disable systemd service "{}", service will be disabled.'.format(service) api.current_logger().warning(msg) - for service in services_to_enable: + for service in services_to_enable - intersection: try: systemd.enable_unit(service) except CalledProcessError: