X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fquotacheck.c;h=057d8617c2290172170771cbebb1b7580df43919;hb=e677657e8dddb33d1f1e32eda0ebc126e08a538d;hp=da2da3b2e05adca5ddcc79ec6452ab0d0e444e51;hpb=0a27cf3f32403f48059396cb43ad25d0a12ef64b;p=elogind.git diff --git a/src/quotacheck.c b/src/quotacheck.c index da2da3b2e..057d8617c 100644 --- a/src/quotacheck.c +++ b/src/quotacheck.c @@ -35,6 +35,9 @@ static int parse_proc_cmdline(void) { int r; size_t l; + if (detect_virtualization(NULL) > 0) + return 0; + if ((r = read_one_line_file("/proc/cmdline", &line)) < 0) { log_warning("Failed to read /proc/cmdline, ignoring: %s", strerror(-r)); return 0;