chiark / gitweb /
condition: opt out of /proc/cmdline parsing only when running in a container, not...
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Sep 2011 21:51:15 +0000 (23:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Sep 2011 21:51:15 +0000 (23:51 +0200)
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) {