mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-16 21:30:52 +00:00
condition: opt out of /proc/cmdline parsing only when running in a container, not in a VM
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user