]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
virt: fix path mentioned in log message 18209/head
authorLennart Poettering <lennart@poettering.net>
Mon, 11 Jan 2021 20:09:37 +0000 (21:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Jan 2021 20:10:55 +0000 (21:10 +0100)
src/basic/virt.c

index 96bf95ed4185256ed702eccb6b910533c4527828..3775bea4e66acc5b1d415f91eb8f143d5ce7e137 100644 (file)
@@ -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.