diff options
Diffstat (limited to 'daemon/system-info.sh')
-rwxr-xr-x | daemon/system-info.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/system-info.sh b/daemon/system-info.sh index 2a3ba7d76..aaca7fd4b 100755 --- a/daemon/system-info.sh +++ b/daemon/system-info.sh @@ -57,7 +57,7 @@ if [ -z "${VIRTUALIZATION}" ]; then VIRTUALIZATION="unknown" VIRT_DETECTION="none" elif [ "$VIRTUALIZATION" != "none" ] && [ "$VIRTUALIZATION" != "unknown" ]; then - VIRTUALIZATION=$(virtualization_normalize_name $VIRTUALIZATION) + VIRTUALIZATION=$(virtualization_normalize_name "$VIRTUALIZATION") fi else # Passed from outside - probably in docker run @@ -101,6 +101,10 @@ if [ "${CONTAINER}" = "unknown" ]; then CONT_DETECTION="kubernetes" fi + if [ "${KERNEL_NAME}" = FreeBSD ] && command -v sysctl && sysctl security.jail.jailed 2>/dev/null | grep -q "1$"; then + CONTAINER="jail" + CONT_DETECTION="sysctl" + fi fi # ------------------------------------------------------------------------------------------------- |