mirror of
https://github.com/systemd/systemd.git
synced 2025-01-06 17:18:12 +03:00
virt: fix path mentioned in log message
This commit is contained in:
parent
b7ec9e719b
commit
79efcd0235
@ -512,7 +512,7 @@ int detect_container(void) {
|
||||
}
|
||||
}
|
||||
|
||||
/* The container manager might have placed this in the /run/host hierarchy for us, which is best
|
||||
/* The container manager might have placed this in the /run/host/ hierarchy for us, which is best
|
||||
* because we can be consumed just like that, without special privileges. */
|
||||
r = read_one_line_file("/run/host/container-manager", &m);
|
||||
if (r > 0) {
|
||||
@ -520,7 +520,7 @@ int detect_container(void) {
|
||||
goto translate_name;
|
||||
}
|
||||
if (!IN_SET(r, -ENOENT, 0))
|
||||
return log_debug_errno(r, "Failed to read /run/systemd/container-manager: %m");
|
||||
return log_debug_errno(r, "Failed to read /run/host/container-manager: %m");
|
||||
|
||||
if (getpid_cached() == 1) {
|
||||
/* If we are PID 1 we can just check our own environment variable, and that's authoritative.
|
||||
|
Loading…
Reference in New Issue
Block a user