mirror of
https://github.com/truenas/scale-build.git
synced 2026-02-15 07:29:12 +00:00
Accomodate all cgroups versions when checking if a process is running under kubernetes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user