1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

condition: opt out of /proc/cmdline parsing only when running in a container, not in a VM

This commit is contained in:
Lennart Poettering 2011-09-19 23:51:15 +02:00
parent 1e2591d48c
commit a373b0e7bc

View File

@ -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) {