summaryrefslogtreecommitdiff
path: root/src/condition.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/condition.c')
-rw-r--r--src/condition.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/condition.c b/src/condition.c
index 1d6cf12ad4..1dce276c00 100644
--- a/src/condition.c
+++ b/src/condition.c
@@ -67,6 +67,9 @@ static bool test_kernel_command_line(const char *parameter) {
assert(parameter);
+ if (detect_virtualization(NULL) > 0)
+ return false;
+
if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) {
log_warning("Failed to read /proc/cmdline, ignoring: %s", strerror(-r));
return false;