Accomodate all cgroups versions when checking if a process is running under kubernetes

This commit is contained in:
themylogin
2023-08-01 18:20:52 +02:00
parent 5491676487
commit cc06d2c360

View File

@@ -313,7 +313,7 @@ def precheck(old_root):
except FileNotFoundError:
cgroups = ""
if "kubepods.slice" in cgroups:
if "kubepods" in cgroups:
continue
running_services.append(title)