]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
namespace: downgrade log message of error we ignore to LOG_WARNING
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Oct 2023 10:57:16 +0000 (12:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Oct 2023 11:17:59 +0000 (13:17 +0200)
frankly, the log message shouldn't be there at all, but the error path
be propagated up, with a recognizable error code. But apparently this is
important to @bluca.

src/core/namespace.c

index 4db3f1a90e16be714da099213d309780ba83a552..cb23c6c1be78cfbfe749ab63d41ea32c5c0052a6 100644 (file)
@@ -1637,8 +1637,8 @@ static int apply_one_mount(
 
                         q = make_mount_point_inode_from_path(what, mount_entry_path(m), 0755);
                         if (q < 0 && q != -EEXIST)
-                                log_error_errno(q, "Failed to create destination mount point node '%s': %m",
-                                                mount_entry_path(m));
+                                log_warning_errno(q, "Failed to create destination mount point node '%s', ignoring: %m",
+                                                  mount_entry_path(m));
                         else
                                 try_again = true;
                 }