tdecacqu / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
a1c89c5
From a373b0e7bc24b8fffe0ba69e8b92eebf2740332e Mon Sep 17 00:00:00 2001
a1c89c5
From: Lennart Poettering <lennart@poettering.net>
a1c89c5
Date: Mon, 19 Sep 2011 23:51:15 +0200
a1c89c5
Subject: [PATCH] condition: opt out of /proc/cmdline parsing only when
a1c89c5
 running in a container, not in a VM
a1c89c5
a1c89c5
---
a1c89c5
 src/condition.c |    2 +-
a1c89c5
 1 files changed, 1 insertions(+), 1 deletions(-)
a1c89c5
a1c89c5
diff --git a/src/condition.c b/src/condition.c
a1c89c5
index f9202f6..8c08be4 100644
a1c89c5
--- a/src/condition.c
a1c89c5
+++ b/src/condition.c
a1c89c5
@@ -75,7 +75,7 @@ static bool test_kernel_command_line(const char *parameter) {
a1c89c5
 
a1c89c5
         assert(parameter);
a1c89c5
 
a1c89c5
-        if (detect_virtualization(NULL) > 0)
a1c89c5
+        if (detect_container(NULL) > 0)
a1c89c5
                 return false;
a1c89c5
 
a1c89c5
         if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {
a1c89c5
-- 
a1c89c5
1.7.4.4
a1c89c5