summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdaemon/system-info.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/system-info.sh b/daemon/system-info.sh
index 373680e7b2..80eb82f866 100755
--- a/daemon/system-info.sh
+++ b/daemon/system-info.sh
@@ -8,7 +8,10 @@ KERNEL_VERSION="$(uname -r)"
ARCHITECTURE="$(uname -m)"
# -------------------------------------------------------------------------------------------------
-# detect the virtualization
+# detect the virtualization and possibly the container technology
+
+CONTAINER="unknown"
+CONT_DETECTION="none"
if [ -z "${VIRTUALIZATION}" ]; then
VIRTUALIZATION="unknown"
@@ -42,9 +45,6 @@ fi
# -------------------------------------------------------------------------------------------------
# detect containers with heuristics
-CONTAINER="unknown"
-CONT_DETECTION="none"
-
if [ "${CONTAINER}" = "unknown" ]; then
if [ -f /proc/1/sched ]; then
IFS='(, ' read -r process _ < /proc/1/sched