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 f9202f6..8c08be4 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) {