From 51228b62392f09ab3db293071703b896401fd70c Mon Sep 17 00:00:00 2001 From: ilyam8 Date: Sun, 8 May 2022 21:46:53 +0300 Subject: fix container detection for LXC --- linux/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/Platform.c b/linux/Platform.c index 775f9aee..d9c23394 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -1035,7 +1035,7 @@ bool Platform_init(void) { char lineBuffer[256]; while (fgets(lineBuffer, sizeof(lineBuffer), fd)) { // detect lxc or overlayfs and guess that this means we are running containerized - if (String_startsWith(lineBuffer, "lxcfs ") || String_startsWith(lineBuffer, "overlay ")) { + if (String_startsWith(lineBuffer, "lxcfs /proc") || String_startsWith(lineBuffer, "overlay ")) { Running_containerized = true; break; } -- cgit v1.2.3