From 05c90ef3aa956bbdd6997da651a2ca5241f15f0e Mon Sep 17 00:00:00 2001 From: Joachim Gleissner Date: Thu, 6 Jun 2024 17:42:24 +0100 Subject: [PATCH] Support disabling systemd timers --- kiwi_keg/script_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiwi_keg/script_utils.py b/kiwi_keg/script_utils.py index fbad3d0..96d5be2 100644 --- a/kiwi_keg/script_utils.py +++ b/kiwi_keg/script_utils.py @@ -151,7 +151,7 @@ def get_services_section(service_items: Dict, ns: str) -> str: service_name = item['name'] enable = item['enable'] if service_name.endswith('timer') or service_name.endswith('target'): - content += 'systemctl enable {}\n'.format(service_name) + content += 'systemctl {} {}\n'.format('enable' if enable else 'disable', service_name) else: if enable: content += 'baseInsertService {}\n'.format(service_name)