diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-09-19 23:51:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-09-19 23:51:15 +0200 |
commit | a373b0e7bc24b8fffe0ba69e8b92eebf2740332e (patch) | |
tree | 5bb4615a93767e88587a0ce699429b488e718d31 | |
parent | 1e2591d48c642e30847ab6038088f8c1f0ec3b70 (diff) |
condition: opt out of /proc/cmdline parsing only when running in a container, not in a VM
-rw-r--r-- | src/condition.c | 2 |
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) { |