From cc06d2c3602cf48d62bb9ba2dd4a5759bf6de252 Mon Sep 17 00:00:00 2001 From: themylogin Date: Tue, 1 Aug 2023 18:20:52 +0200 Subject: [PATCH] Accomodate all cgroups versions when checking if a process is running under kubernetes --- truenas_install/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truenas_install/__main__.py b/truenas_install/__main__.py index a9b09f7..105596b 100644 --- a/truenas_install/__main__.py +++ b/truenas_install/__main__.py @@ -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)