From 5feeba7b216ec34f9a201f034d2c8f8db1462e6a Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 26 Apr 2024 09:33:48 +0200 Subject: [PATCH 68/92] 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 3f84f59f..8aeb5c2c 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: -- 2.42.0