From: Lennart Poettering Date: Mon, 19 Sep 2011 21:51:15 +0000 (+0200) Subject: condition: opt out of /proc/cmdline parsing only when running in a container, not... X-Git-Tag: v36~56 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a373b0e7bc24b8fffe0ba69e8b92eebf2740332e;p=systemd condition: opt out of /proc/cmdline parsing only when running in a container, not in a VM --- 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) {