From a373b0e7bc24b8fffe0ba69e8b92eebf2740332e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 19 Sep 2011 23:51:15 +0200 Subject: [PATCH] condition: opt out of /proc/cmdline parsing only when running in a container, not in a VM --- src/condition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/condition.c b/src/condition.c index f9202f68..8c08be43 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) { -- 2.39.5