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:
parent
1e2591d48c
commit
a373b0e7bc
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user