chiark / gitweb /
condition: opt out of /proc/cmdline parsing only when running in a container, not...
[elogind.git] / src / condition.c
index f9202f68508d9aafd12e53f14e9781f00a332e46..8c08be43e43a14df2f7f94846ebf1c9013e868ef 100644 (file)
@@ -75,7 +75,7 @@ static bool test_kernel_command_line(const char *parameter) {
 
         assert(parameter);
 
-        if (detect_virtualization(NULL) > 0)
+        if (detect_container(NULL) > 0)
                 return false;
 
         if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {