summaryrefslogtreecommitdiff
path: root/src/readahead-collect.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-21 21:48:59 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-21 21:48:59 +0100
commit07faed4f99d0c798f92de3032b9c20ca31388494 (patch)
tree01ce628c10a9e7c1c691f0424b633905ccfeb134 /src/readahead-collect.c
parentb284eabdc14683e4587baf43e83cedc6698a42df (diff)
virtualization: beef virtualization code
Diffstat (limited to 'src/readahead-collect.c')
-rw-r--r--src/readahead-collect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/readahead-collect.c b/src/readahead-collect.c
index ea07b3ff49..330d10776f 100644
--- a/src/readahead-collect.c
+++ b/src/readahead-collect.c
@@ -652,8 +652,8 @@ int main(int argc, char *argv[]) {
return 0;
}
- if (running_in_vm()) {
- log_info("Disabling readahead collector due to execution in virtual machine.");
+ if (detect_virtualization(NULL) > 0) {
+ log_info("Disabling readahead collector due to execution in virtualized environment.");
return 0;
}