@@ -616,7 +616,7 @@ def _start_service_container(self, name, service: Service):
616616 working_dir = _cwd ,
617617 containers = _containers ,
618618 systemd = systemd ,
619- systemd_v248 = self .is_systemd_v248 (systemd , service , _image ),
619+ systemd_cgroup2 = self .is_systemd_cgroup2 (systemd , service , _image ),
620620 )
621621 self ._service_links [cont_name ] = name
622622
@@ -1025,7 +1025,7 @@ def run(self, context: dict): # pylint: disable=too-many-statements,too-many-br
10251025 )
10261026 # Figure out if we should be running systemd. Has to happen after docker pull
10271027 container_args ["systemd" ] = self .is_systemd (self .step , _run_image )
1028- container_args ["systemd_v248 " ] = self .is_systemd_v248 (
1028+ container_args ["systemd_cgroup2 " ] = self .is_systemd_cgroup2 (
10291029 container_args ["systemd" ], self .step , _run_image
10301030 )
10311031
@@ -1164,16 +1164,16 @@ def is_systemd(self, run_service: RunAndServicesBase, image: str) -> bool:
11641164 return run_service .systemd
11651165 return self ._get_label_is_truthy (image , "BUILDRUNNER_SYSTEMD" )
11661166
1167- def is_systemd_v248 (
1167+ def is_systemd_cgroup2 (
11681168 self , systemd : bool , run_service : RunAndServicesBase , image : str
11691169 ) -> bool :
11701170 """
1171- Check if an image needs the changes for systemd v248+
1171+ Check if an image needs the changes for cgroup2
11721172 """
11731173 if not systemd :
11741174 # Do not run any other checks if we are not using systemd at all
11751175 return False
11761176
1177- if run_service .systemd_v248 is not None :
1178- return run_service .systemd_v248
1179- return self ._get_label_is_truthy (image , "BUILDRUNNER_SYSTEMD_V248 " )
1177+ if run_service .systemd_cgroup2 is not None :
1178+ return run_service .systemd_cgroup2
1179+ return self ._get_label_is_truthy (image , "BUILDRUNNER_SYSTEMD_CGROUP2 " )
0 commit comments