summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-09-19 23:51:15 +0200
committerLennart Poettering <lennart@poettering.net>2011-09-19 23:51:15 +0200
commita373b0e7bc24b8fffe0ba69e8b92eebf2740332e (patch)
tree5bb4615a93767e88587a0ce699429b488e718d31 /src
parent1e2591d48c642e30847ab6038088f8c1f0ec3b70 (diff)
condition: opt out of /proc/cmdline parsing only when running in a container, not in a VM
Diffstat (limited to 'src')
-rw-r--r--src/condition.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/condition.c b/src/condition.c
index f9202f6850..8c08be43e4 100644
--- a/src/condition.c
+++ b/src/condition.c
@@ -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) {